List ADT Flashcards

(9 cards)

1
Q

What 3 things does an ADT consist of ?

A
  1. Data structure
  2. Operations
  3. Encapsulation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is a list?

A

linear sequence of elements

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

what are the 5 basic operations of a list ADT?

A
RICDD -> rick 'dd
Retrieval
insertion
Creation
Deletion
Destruction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

a “key” is used in ordered or unordered lists?

A

ordered

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

What is a key?

A

uses an attribute from elements within the list that determiens ordering.

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

T or F : proper ordering must be maintained before and after insertion

A

True

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

What is the Encapsulation?

A

the actual data structure that will internally represent the list.

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

A list can be implemented using what 2 data structures?

A

An array

Linked List using references

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

What is present in an Array-based List?

A

array of elements
int numOfElements
int capacity

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