IB Computer - Abstract Data Types

studied byStudied by 14 people
5.0(1)
Get a hint
Hint

Abstraction

1 / 27

28 Terms

1

Abstraction

A model of a system that includes only necessary details for the user, hiding the complexity of the actual implementation.

New cards
2

Abstract Data Type (ADT)

Provides a collection of data and operations that act on the data, allowing usage without knowledge of implementation details.

New cards
3

List ADT

Represents a collection of data with defined operations like insert, remove, clear, contains, indexOf, get, size, and toString.

New cards
4

Stack ADT

Structures where elements are added and removed from the same end, following Last In First Out (LIFO) principle.

New cards
5

Queue ADT

Structures where elements are added to one end and removed from the other, following First In First Out (FIFO) principle.

New cards
6

Set ADT

Represents a collection of unique elements with operations like add, remove, contains, union, intersection, difference, size, isEmpty, and clear.

New cards
7

Map/Dictionary ADT

Represents key-value pairs with operations like put, get, remove, containsKey, containsValue, keySet, values, entrySet, size, isEmpty, and clear.

New cards
8

Features of ADT

Key features include Abstraction, Better Conceptualization, Robustness, Encapsulation, Data Abstraction, Data Structure Independence, Information Hiding, and Modularity.

New cards
9

Advantages of ADT

Encapsulation, Abstraction, Data Structure Independence, Information Hiding, and Modularity provide benefits in managing and working with data structures.

New cards
10

Disadvantages of ADT

Overhead, Complexity, Learning Curve, Limited Flexibility, and Cost are challenges associated with implementing and using ADTs.

New cards
11

Information Hiding

The complexity and details of actual implementation should be hidden from the user informal

New cards
12

Information Specification

An English description that provides a list of all available operations on the data with their inputs and outputs

New cards
13

Formal Specification

A Java interface definition that concrete classes can implement later.

New cards
14

StringList

Contains a (possibly empty) collection of objects of type String.

New cards
15

Insert

This operation adds a String object, given as a parameter, to the list of strings.

New cards
16

Remove

This operation removes a String object, given as a parameter, from the list of strings. If the given String object is not on the list, the list content does not change.

New cards
17

Clear

This operation removes all objects from the list. The list becomes empty.

New cards
18

Contains

This operation determines whether a String object, given as a parameter, is stored in the list. It returns true or false, accordingly.

New cards
19

IndexOf

This operation determines the index (or location) of a String object, given as a parameter.

New cards
20

Get

This operation returns an object stored at the index/location given as a parameter.

New cards
21

Size

This operation determines the number of objects stored in the list.

New cards
22

toString

This operation produces a meaningful String representation of the list.

New cards
23

CharStack

Contains a (possibly empty) collection of objects of type Character.

New cards
24

Insert/Push

This operation adds a Character object, given as a parameter, to the top of the stack of characters.

New cards
25

Remove/Pop

This operation removes and returns a Character object from the top of the stack of characters.

New cards
26

Peek

This operation returns a Character object from the top of the stack of characters.

New cards
27

Insert/Enqueue

This operation adds a Process object, given as a parameter, to the end of the queue of processes.

New cards
28

Remove/Dequeue

This operation removes and returns a Process object from the front of the queue of processes.

New cards

Explore top notes

note Note
studied byStudied by 11 people
... ago
5.0(1)
note Note
studied byStudied by 15 people
... ago
5.0(1)
note Note
studied byStudied by 21 people
... ago
5.0(1)
note Note
studied byStudied by 14 people
... ago
5.0(1)
note Note
studied byStudied by 64 people
... ago
5.0(1)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 126 people
... ago
5.0(2)
note Note
studied byStudied by 126836 people
... ago
4.9(606)

Explore top flashcards

flashcards Flashcard (44)
studied byStudied by 81 people
... ago
5.0(1)
flashcards Flashcard (21)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (34)
studied byStudied by 3745 people
... ago
4.1(74)
flashcards Flashcard (189)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (31)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (57)
studied byStudied by 16 people
... ago
5.0(1)
flashcards Flashcard (56)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (37)
studied byStudied by 3 people
... ago
5.0(1)
robot