ABSTRAC DATA TYPE Flashcards

1
Q

is a type (or class) for objects whose behavior is defined by a
set of values and a set of operations.

A

ABSTRACT DATA TYPE (ADT)

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

Is a kind of data type whose behavior is defined with the help of some attributes and
some functions.

A

ABSTRACT DATA TYPE (ADT)

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

TYPES OF ADT

A

STACK ADT
LIST ADT
QUEUE ADT

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

implementation instead of data being stored in each node, the pointer to data is stored.

A

STACK ADT

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

STACK ADT FUNCTIONS

A

push()
pop()
peek()
size()
isEmpty()
isFull()

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

LIST ADT FUNCTIONS

A

get()
insert()
remove()
removeAt()
replace()
size()
isEmpty()
isFull()

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

QUEUE ADT FUNCTIONS

A

enqueue()
dequeue()
peek()
size()
isEmpty()
isFull()

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

The data us generally stored in key sequence in a list which has a head structure consisting of count, pointers and address of compare function needed to compare the data in the list.

A

LIST ADT

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

Follows the basic design of the stack abstract data type

A

QUEUE ADT

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

Each node contains a void pointer to the data and the link pointer to the next element in the queue. The programs responsibility is to allocate memory for storing the data.

A

QUEUE ADT

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

insert an element at one end of the stack called top

A

push()

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

remove and return an element at the top of the stack, if its not empty

A

pop()

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

return the element (at the top of the stack/of the queue) without removing it, if the stack is not empty

A

peek()

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

return the number of elements in the stack/list/queue

A

size()

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

return true if the stack is empty, otherwise return false

A

isEmpty()

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

return true if the stack is full, otherwise return false

A

isFull()

17
Q

return an element from the list at any given position

A

get()

18
Q

insert an element at any position of the list

A

insert()

19
Q

remove the first occurance of any element from a non-empty list

A

remove()

20
Q

remove the element at a specified location from a non empty list

A

removeAt()

21
Q

replace an element at any position by another element

A

replace()

22
Q

insert an element at the end of the queue

A

enqueue()

23
Q

remove and return the first element of the queue, if the queue is not empty

A

dequeue()