ITEC33 Flashcards

1
Q

A linear data structure which follows order in which the operations are performed. Order may be LIFO or FILO

A

Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Storing an element on the stack

A

push()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

removing an element from the stack

A

pop()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

get the top data element of the stack without removing it

A

peek()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

check if stack is full

A

isFull()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

check if stack is empty

A

isEmpty()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

the way to write arithmetic expression

A

notation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

3 different notation

A

Infix Notation
Prefix (polish) notation
Postfix (Reverse-polish) notation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

An abstract data structure. It follows FIFO methodology

A

Queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

add an item to the queue

A

enqueue()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

remove an item to the queue

A

dequeue()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

a sequential search is made over all items one by one

A

linear search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

every item is checked and if a match is found, then the particular item is returned

A

linear search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

is a fast search algorithm with run-time complexity of O(log n)

A

binary search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

this search algorithm works in the principle of divide and conquer

A

binary search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

is an improved variant of binary search

A

interpolation search

17
Q

the data collection should be in a sorted form and equally distributed

A

interpolation search

18
Q

refers to arranging data in a particular format

A

sorting

19
Q

specifies the way to arrange data in a numerical or lexicographical order

A

sorting

20
Q

this sorting algorithm is comparison-based algorithm in which each pair of adjacent element is compared and the elements are swapped if they are not in order

A

bubble sort

21
Q

is an in-place comparison-based sorting algorithm where a sub-list is maintained which is always sorted

A

insertion sort

22
Q

the smallest element from the unsorted array is swapped with the leftmost element and that element becomes a part of the sorted array

A

selection sort

23
Q

sorting technique based on divide and conquer technique.

A

merge sort

24
Q

sorting that divides the array into equal halves and then combines them in a sorted manner

A

merge sort

25
Q

is a highly efficient algorithm and is based on partitioning of array of data into smaller arrays

A

quick sort

26
Q

is a highly efficient sorting algorithm and is based on insertion sort algorithm

A

shell sort