Abstract Data Types

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

Abstract Data Types (ADT)

A formal description of a set of objects sharing the same properties and behaviors, specifying the operations that can be performed without detailing the implementation.

2
New cards

Encapsulation

The bundling of data with the methods that operate on that data, restricting direct access to some components and preventing unintended interference.

3
New cards

Data Structure

An organization of information, usually in computer memory, that implements an abstract data type for better algorithm efficiency.

4
New cards

Mutator Method

A method used to control changes to a variable, also known as a setter.

5
New cards

Accessor Method

A method that returns the value of a member variable without altering it, also referred to as a getter.

6
New cards

LIFO (Last In, First Out)

A method of data organization and retrieval where the most recently added item is the first to be removed, commonly used in stacks.

7
New cards

Core Operations of Data Structures

Basic functions including adding items, removing items, and accessing items within a data structure.

8
New cards

Types of ADTs

Different kinds include Bags, Sets, Stacks, Lists, Queues, Trees, Heaps, etc., each differing in how they handle data.

9
New cards

Interface

The set of operations provided to interact with an abstract data type, hiding the underlying implementation.

10
New cards

Instance of a Class

An individual object created based on the structure defined by a class, carrying its own state.

11
New cards

Data Hiding

The practice of restricting access to the internal state of an object and protecting it from external interference.

12
New cards

Data Abstraction

The principle of hiding the complex reality while exposing only the necessary parts, allowing interaction without understanding the details.

13
New cards

Python List

A built-in data structure in Python that allows for ordered, mutable collections of items, manipulated through various methods.

14
New cards

Float Data Type

A representation of real numbers in computing that allows for decimal points, implemented with specific arithmetic operations.

15
New cards

Programming Language Independence

The ability to design ADTs and their specifications without tying them to any specific programming language, promoting versatility.

16
New cards

Stack Operations

Primary operations associated with stacks, including push (to add) and pop (to remove) elements.

17
New cards

Class Definition

A blueprint for creating objects, defining their properties and the methods that operate on those properties.

18
New cards

Private State

The internal state of an object that is not accessible directly from outside its class to ensure encapsulation.

19
New cards

Abstract Definition vs Concrete Implementation

An abstract definition specifies behavior while a concrete implementation provides the actual code that fulfills the specified behavior.

20
New cards

Example of Object Protocol

The methods and properties exposed to interact with a class instance, defining how that instance can be used.