Chapter Eight - Abstract Data Types and Subprograms Flashcards

1
Q

abstract data type (ADT)

A
  • CONTAINER in which DATA items are STORED, and each exhibits specific behaviors (e.g. stacks, queues, binary trees…)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

data structure

A
  • implementation of a COMPOSITE(made up of several parts) DATA FIELD in an abstract data type.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

containers

A
  • objects whose role is to HOLD & MANIPULATE other objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

linked structure

A
  • implementation of a CONTAINER where the items are stored together with information on where the NEXT item can be found (based on concept of NODE > data + pointer to next node)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

binary tree

A
  • abstract composite structure; starting node: ROOT; each node is capable of having two child nodes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

root

A
  • unique starting node in a tree
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

leaf node

A
  • tree node that has NO CHILDREN
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

graph

A
  • data structure (consists of NODES and EDGES that relate the nodes to each other)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

vertex

A
  • a NODE in a graph
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

edge (arc)

A
  • the lines that connect the nodes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

undirected graph

A
  • graph in which EDGES have no direction (e.g. roads that run b/w cities are two way paths)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

directed graph (digraph)

A
  • graph where EDGES is directed from one vertex to another (e.g. vertices representing a flight from one city to another, the path is not a two way)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

adjacent vertices

A
  • two VERTICES that are connected by an EDGE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

path

A
  • SEQUENCE OF VERTICES that connects TWO NODES in a graph
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

parameter list

A
  • list of identifiers or values with which the subprogram is to work; appears in parenthesis beside the subprogram name.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

parameters

A
  • identifiers listed in parentheses beside the subprogram name
17
Q

value parameter

A
  • if the parameter is this, gives a COPY of the argument to the subprogram
18
Q

reference parameter

A
  • if the parameter is this, gives the ADDRESS of the argument to the subprogram