D777: Real Life Applications of Data Structures

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/59

encourage image

There are no tags or description

Looks like no tags are added yet.

60 Terms

1
New cards

record

the data structure that stores subitems, often called fields, with a name associated with each subitem.

2
New cards

array

a data structure that stores an ordered collection of elements, where each element is directly accessible by a positional index.

3
New cards

linked list

a data structure that stores an ordered list of items in nodes, where each node stores data and has a reference to the next node

4
New cards

binary tree

a data structure in which each node stores data and has up to two children, known as a left child and a right child

5
New cards

hash table

a data structure that stores unordered items by mapping each item to a location in an array.

6
New cards

max-heap

a tree that maintains the simple property that a node's key is greater than or equal to the node's children’s' keys

7
New cards

min-heap

a tree that maintains the simple property that a node's key is less than or equal to the node's children's key

8
New cards

graph

a data structure for representing connections among items, and consists of vertices connected by edges

9
New cards

vertex

represents an item in a graph

10
New cards

edge

represents a connection between two vertices in a graph

11
New cards

the main difference between a Python list and an array (as defined by the textbook)

Items in an array can be edited, but not added or removed. (i.e. arrays have a fixed size, Python lists do not)

12
New cards

one advantage of using a linked list over an array when additional items may need to be added to the data structure later

Adding an item to a linked list does not require shifting the items (using more memory, slowing down processes), while adding an item to an array almost always requires shifting the items

13
New cards

algorithm

a collection of rules or instructions that govern how a work is to be conducted step-by-step to achieve the desire results

14
New cards

the characteristics of an algorithm

clear and unambiguous, well-defined inputs, well-defined outputs, finite-ness, feasible, and language independent

15
New cards

data flow diagram

maps the flow of information for any process or system

16
New cards

external entity

a system that sends or receives data, also called a terminator, source, sink, or actor; drawn on the edges of a DFD

17
New cards

external entity (symbol)

rectangle

18
New cards

process

an action that changes data and produces an output; drawn with a short verb label

19
New cards

process (symbol)

circle

20
New cards

data store

a file or repository that holds information for later use, such as a database table; drawn with a simple noun label

21
New cards

data store (symbol)

incomplete rectangle

22
New cards

data flow

the route that data takes between entities, processes, and stores; drawn with a short name label

23
New cards

data flow (symbol)

arrow

24
New cards

in a DFD, each process must have…

at least one input and one output

25
New cards

in a DFD, each data store must have…

at least one data flow in and one data flow out

26
New cards

in a DFD, data stored in a system must…

move through a process

27
New cards

in a DFD, every process must lead to…

a process or a data store

28
New cards

DFD Level 0

shows a whole system as one high-level process and its relationships with external entitie

29
New cards

DFD Level 0 is also known as…

a context diagram

30
New cards

DFD Level 1

breaks a system into it’s main functions and shows how those functions exchange data with each other and with external entities

31
New cards

DFD Level 2

details the subprocesses inside a function

32
New cards

logical DFD

shows the essential data flows a business needs to operate, independent of technology

33
New cards

physical DFD

shows how the system is implemented, including files, hardware, and software

34
New cards

computational problem

specifies an input, a question about the input that can be answered using a computer, and the desired output

35
New cards

NP-complete problems

a set of problems for which no known efficient algorithm exists

36
New cards

the advantage of knowing a problem is NP-complete

instead of trying to find an efficient algorithm to solve the problem, a programmer can focus on finding an algorithm to efficiently find a good, but non-optimal, solution

37
New cards

an algorithm is considered efficient when…

it’s runtime increases no more than polynomially with respect to the input size

38
New cards

abstract data type (ADT)

described by predefined user operations without indicating how each operation is implemented

39
New cards

list

an ADT for holding ordered data

40
New cards

dynamic array

an ADT for holding ordered data and allowing indexed access

41
New cards

stack

an ADT in which items are only inserted or removed from the top

42
New cards

queue

an ADT in which items are inserted at the end and removed from the front

43
New cards

deque

an ADT in which items can be inserted and removed from both the front and the back

44
New cards

bag

an ADT for storing items in which the order does not matter and duplicate items are allowed

45
New cards

set

an ADT for a collection of distinct items

46
New cards

priority queue

an ADT in which items are inserted at the end and removed from the front where each item has a priority, and items with higher priority are closer to the front than items with lower priority

47
New cards

dictionary

an ADT that associates or maps keys with values

48
New cards

abstraction

to have a user interact with an item at a high-level, with lower-level internal details hidden

49
New cards

algorithm efficiency

measured by an algorithm’s computational complexity

50
New cards

computational complexity

the amount of resources used by the algorithm (runtime, memory, etc.)

51
New cards

runtime complexity

a function that represents the number of constant time operations performed by the algorithm

52
New cards

best case

the scenario where an algorithm does the minimum possible number of operations

53
New cards

worst case

the scenario where the algorithm does the maximum possible number of operations

54
New cards

space complexity

a function that represents the number of fixed-size memory units used by the algorithm

55
New cards

auxiliary space complexity

a function that represents the number of fixed-size memory units used by the algorithm, not including the input data

56
New cards

Huffman coding

a common compression technique that assigns fewer bits to frequent items

57
New cards

heuristic

a technique that willingly accepts a non-optimal or less accurate solution in order to improve execution speed

58
New cards

self-adjusting heuristic

an algorithm that modifies a data structure based on how that data structure is used

59
New cards

greedy algorithm

an algorithm that, when presented with a list of options, chooses the option that is optimal at that point in time

60
New cards

dynamic programming

a problem solving technique that splits a problem into smaller subproblems, computes and stores solutions to subproblems in memory, and then uses the stored solutions to solve the larger problem