Data Abstraction

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

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.

16 Terms

1
New cards

Unity of a program in modularity

Functions, data structures, modules

2
New cards

interface in modularity

Types and operations defined in a component that are visible outside it

3
New cards

specification

describes the intended functionality of a component as observed through the interface

4
New cards

implementation

data structures and functions inside the component not necessarily visible from outside

5
New cards

data type defining in abstraction

by its values and the operations that can be performed on it

6
New cards

what is hidden in data abstraction

the representation of the data and operations (encapsulation)

7
New cards

what does control abstraction do

hides implementation details of procedure bodies

8
New cards

what does data abstraction do

hides how data structures are represented and how operations are implemented

9
New cards

example of implementation hiding

A priority queue implemented as a binary search tree, a partially ordered vector

10
New cards

purpose of linguistic support in abstraction

to enforce information hiding at the language level

11
New cards

core idea of ADTs

separate the interface from the implementation

Example: A set with operations like empty, union, insert, is_member implemented using vectors or lists

12
New cards

type checking

ensures interface/implementation separation together with encapsulation

13
New cards

ADT for a stack of int

includes operations like push , pop, empty, and internal management of the stack structure

14
New cards

representation-independent

the user cannot distinguish between different correct implementations of the same abstract type

15
New cards

encapsulation

the implementation can be changed without affecting users of the component

16
New cards

use of modules

Information hiding and organizing code. 2 parts of a module: Interface: names and types exposed to the user, Implementation: declarations and internal details. Examples: in ML: Structures, in Ada: packages