Data Types and Structures: A Comprehensive Overview, Quizzes of Data Structures and Algorithms

Definitions and explanations for various data types, data structures, and related concepts in computer science. Topics include boolean, data structures, abstract data types, data stack, dynamic allocation, use of 'new', objects or arrays, proper use of delete and delete[], garbage, dangling reference, constructor, copy constructor, default constructor, overloaded operators, destructors, the 'big 3', direct recursion, indirect recursion, recursion, pointers, function declarations, function definitions, initialize list, default parameter values, algorithmic complexity, complexity graph, and big-o notation.

Typology: Quizzes

Pre 2010

Uploaded on 09/23/2010

atrummihi
atrummihi 🇺🇸

6 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
TERM 1
data type
DEFINITION 1
a named set of values and a set of operations on those
values. we associate some name with a data type so that we
may use it. For example, the data type called 'boolean' is
made up of (a) {false, true} - a set of values, and (b) {and,
or, not} - a set of operations on those values.
TERM 2
data structures
DEFINITION 2
is a data type that does have access ible component parts. For
example a student record, an array o r list of values, even a string
which may provide access to the individual char acters that make it
up. Data structures can be supporte d by the programming
language or can be supported by prog rammer written code, for
example when the programmer cre ates a linked list of nodes or
even when he defines a class for obje cts that have two or more
data parts to them.
TERM 3
ADT
DEFINITION 3
Abstract data type. we use an abstract model that specifies
the type of data stored and the operations that support the
data
TERM 4
data
stack
DEFINITION 4
is made up of activation records. We use the term stack
since a new activation record is 'pushed' onto the stack each
time we enter a new block and that same activation record is
'popped' off of the data stack when execution of the block of
code terminates.
TERM 5
dynamic allocation
DEFINITION 5
Definition
pf3
pf4
pf5

Partial preview of the text

Download Data Types and Structures: A Comprehensive Overview and more Quizzes Data Structures and Algorithms in PDF only on Docsity!

data type

a named set of values and a set of operations on those

values. we associate some name with a data type so that we

may use it. For example, the data type called 'boolean' is

made up of (a) {false, true} - a set of values, and (b) {and,

or, not} - a set of operations on those values.

TERM 2

data structures

DEFINITION 2

is a data type that does have accessible component parts. For

example a student record, an array or list of values, even a string

which may provide access to the individual characters that make it

up. Data structures can be supported by the programming

language or can be supported by programmer written code, for

example when the programmer creates a linked list of nodes or

even when he defines a class for objects that have two or more

data parts to them.

TERM 3

ADT

DEFINITION 3

Abstract data type. we use an abstract model that specifies

the type of data stored and the operations that support the

data

TERM 4

data

stack

DEFINITION 4

is made up of activation records. We use the term stack

since a new activation record is 'pushed' onto the stack each

time we enter a new block and that same activation record is

'popped' off of the data stack when execution of the block of

code terminates.

TERM 5

dynamic allocation

DEFINITION 5

Definition

use of 'new'

Definition

TERM 7

objects or arrays

DEFINITION 7

Definition

TERM 8

proper use of delete and delete[]

DEFINITION 8

Definition

TERM 9

garbage

DEFINITION 9

Definition

TERM 10

dangling reference

DEFINITION 10

Definition

What are the "big 3" and when do we usually

need them?

Definition

TERM 17

direct recursion

DEFINITION 17

Definition

TERM 18

indirect recursion

DEFINITION 18

Definition

TERM 19

recursion

DEFINITION 19

Definition

TERM 20

pointers

DEFINITION 20

Definition

function declarations

Definition

TERM 22

function definitions

DEFINITION 22

Definition

TERM 23

initialize

list

DEFINITION 23

Definition

TERM 24

default parameter

values

DEFINITION 24

Definition

TERM 25

algorithmic complexity

DEFINITION 25

Definition