CS 2.1 -definitions (ALEVEL) Flashcards

(28 cards)

1
Q

multi -dimensional arrays

A

array where each data item is located using multiple indices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

single-dimensional arrays

A

array where each data item can be located using single index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

dictionaires

A

data structure consisting of set of keys that are mapped to corresponding values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

dynamic structures

A

data structure whose memory allocation size can change throughout execution of program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

graphs

A

data structure consisting of set of vertices connected by edges

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Hash tables

A

data structure where hashing algorithm creates a mapping between keys and values, data item can be directly accessed by recalculation without any search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

queues

A

FIFO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

stack

A

LIFO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Static structures

A

data structure that is allocated a fixed amount of memory space, which does not change throughout the execution of program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Trees

A

data structure that uses set of linked nodes to form a hierarchical structure starting at root node, each node is a child of a parent node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

vectors

A

data structure representing a quantity with both magnitude and direction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Stacks - peek

A

allows users to view the top element of stack without modifying

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

stack - pop

A

removes the most recently added element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

stack - push

A

adds an element to top of stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Graphs - adjacency list

A

representation of a graph by storing a list of connected nodes to each node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

adjacency matrix

A

matrix representation of a graph that stores the edges connecting all possible nodes

17
Q

directed nodes

A

graph where order of vertices paired in an edge matter

18
Q

edge

A

connection that represents a relationship before two nodes

19
Q

undirected graph

A

graph where order of vertices in an edge does not matter, edges are bidirectional

20
Q

vertex

A

the representation of an object on a graph is capable of being related to other such objects

21
Q

weighted graphs

A

graphs where each edge has an associated value

22
Q

binary trees

A

rooted tree in which each nodes has at most 2 children

23
Q

trees

A

a connected, undirected graph with no cycles

24
Q

hash tables - collisions

A

when two key values compare to same hash

25
hashing algorithm
algorithm that calculates a value to determine the unique index where a date item is to be stored in a hash table
26
rehashing
returning the hashing algorithm in event of collision
27
convex combination of two vectors
any vector that can be expressed as a linear combination of the two vectors
28
dot product of 2 vectors
A = [1,4,6] B = [3,7,9] dot product = (1)(3) + (4)(7) +(6)(9)]