IB Computer - Abstract Data Types

studied byStudied by 1 person
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 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 18 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 132 people
Updated ... ago
4.5 Stars(259)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard109 terms
studied byStudied by 10 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard122 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard54 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard54 terms
studied byStudied by 488 people
Updated ... ago
5.0 Stars(4)
flashcards Flashcard40 terms
studied byStudied by 23 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard48 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard32 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 275 people
Updated ... ago
5.0 Stars(5)