C949 WGU Terminology

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

1/71

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.

72 Terms

1
New cards

record

data structure that stores subitems, with a name associated with each subitem

2
New cards

array

a data structure that stores an ordered list of items, with each item is directly accessible by a positional index

homogeneous data elements

3
New cards

linked list

data structure that stores ordered list of items in nodes, where each node stores data and has a pointer to the next node; can have multiple subitems

4
New cards

binary tree

A data structure that consists of nodes, with one root node at the base of the tree, and two nodes (left child and right child) extending from the root, and from each child node

can have no children, single left or right, or both right and left

5
New cards

hash table

data structure that stores unordered items by mapping (or hashing) 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 childrens' 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 childrens' keys

8
New cards

graph

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

9
New cards

vertice

part of a graph the represents an item in a graph

10
New cards

edge

part of a graph that represents a connection between to vertices in a graph

11
New cards

what is an advantage of a linked list over an array?

when inserting a new item at the beginning it causes no shift to the data

12
New cards

ADT (Abstract data Type)

data type described by predefined user operations, such as "insert data at rear", without indication how each operation is implemented

13
New cards

list

ADT for holding ordered data

14
New cards

stack

ADT which items are only inserted on or removed from the top of a stack

LIFO

15
New cards

Queue

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

FIFO

16
New cards

deque ("deck")

ADT in which items can be removed at both the front and back

17
New cards

Bag

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

18
New cards

Set

ADT for collection of distinct items

common underlying DS: Binary search tree, hash table

19
New cards

Priority Queue

a queue in which the highest-priority elements are removed first; within a priority value, the earliest arrival is removed first.

common underlying DS: heap

20
New cards

Dictionary (map)

ADT that associates (or maps) keys with values

common underlying DS: has table, binary search tree

21
New cards

List, Bag

ADTs with array, linked list as common underlying DS

22
New cards

Stack, Queue, Deque

ADTs with linked list as their only common underlying DS

23
New cards

Peek

ADT operation for a queue that returns but does not remove item at the front of the queue

24
New cards

identity

unique identifier that describes the object

25
New cards

//

symbol for floored division

26
New cards

tuple

behaves similar to a list but is immutable -- once created the els can not be chagned

const array/list

27
New cards

for i in range(0)

sets i to 0 during the first iteration of the for loop, i to 1 during the second iteration, and finally i to 2 on the third iteration. The value within the parentheses is not included in the generated sequence.

28
New cards

range(5, -6, -1)

code for every int form 5 down to -5

29
New cards

range(10, 21, 2)

code for every 2nd int from 10 to 20

30
New cards

polymorphism

functional behavior depends on the argument types

31
New cards

dynamic typing

used to determine the type of objects as a program executes; Python

32
New cards

Static Typing

requires the programmer to define the type of every variable and every function parameter in a program's source code; C, C++

33
New cards

class

keyword that can be used to create a user-defined type of object containing groups of related vars and fxns

creates a new type of object

34
New cards

__init__

instantiation of a class automatically calls this method defined in the class def

this is also known as the constructor

35
New cards

memory allocation

the process of an app req and being granted memory

36
New cards

garbage collection

reference count is an integer count that reps how many vars ref an obj;

when an obj ref count = 0 the obj is no longer referenced and is sent here

37
New cards

ternary

type of operation condition ? (T)Block1: (F)Block2

38
New cards

assignment

type of operation for setting a var

39
New cards

comparison

type of operation for comparing data <, > ...

40
New cards

equality

type of operation == !==

41
New cards

short

data type

42
New cards

long

data type

43
New cards

linked allocation

A data structured contains the name, size, and starting block/cluster address of a file. A table is used to identify the address of each piece of the file.

Storage is allocated using pointers to new locations as needed.

44
New cards

mid-values

45
New cards

deque

A ______ is a "doubled-ended queue"

46
New cards

List

ADT that has elements of the same type so that the elements can be retrieved based on index or position

47
New cards

(high + low)/2

mid-values calculation for binary search. toCeil()

48
New cards

It is automatically available for garbage collection

What is the effect on the object regarding garbage collection?

Computing obj = new Computing(); obj = null

49
New cards

mutable

open to or capable of change, fickle

50
New cards

immutable

(adj.) not subject to change, constant

51
New cards

unique and immutable

Characteristics of keys in associative dictionary data type

52
New cards

DictName[key].remove(value)

method used to take a value out of a dictionary

53
New cards

Java.io.FileInputStream

Java method used to read bytes from standard file

54
New cards

Add(int index, Object x)

command that inserts object x at position index in a list

55
New cards

quick sort

recursively breaks down a problem into two or more subproblems of the same or related type

56
New cards

O(n^2)

Bubble sort && Insertion sort time complexity

57
New cards

bucket sort

Best: O(n+k)

Avg: O(n+k)

Worst: O(n^2)

Space: O(nk)

for uniformly distributed nums across a range to be sorted

58
New cards

bubble sort

for i from 0 to N -1

if a[i] > a[i+1]

swap(a[i], a[i +1]

end for

59
New cards

Bubble Sort Algorithm

def shortSort(alist):

exchanges = True

passnum = len(alist)-1

while passnum > 0 and exchanges:

exchanges = False

for i in range(passnum):

if alist[i]>alist[i+1]:

exchanges = True

temp = alist[i]

alist[i] = alist[i+1]

alist[i+1] = temp

passnum = passnum-1

60
New cards

Quick Sort Algorithm

int partition( void *a, int low, int high )

{

int left, right;

void *pivot_item;

pivot_item = a[low];

pivot = left = low;

right = high;

while ( left < right ) {

/ Move left while item < pivot /

while( a[left] <= pivot_item ) left++;

/ Move right while item > pivot /

while( a[right] > pivot_item ) right--;

if ( left < right ) SWAP(a,left,right);

}

/ right is final position for the pivot /

a[low] = a[right];

a[right] = pivot_item;

return right;

}

61
New cards

O(1)

Big-O

FindMin(x, y) {

if (x < y) {

return x

}

else {

return y

}

}

62
New cards

O(logn)

Big-O

BinarySearch(numbers, N, key) {

mid = 0

low = 0

high = N - 1

while (high >= low) {

mid = (high + low) / 2

if (numbers[mid] < key) {

low = mid + 1

}

else if (numbers[mid] > key) {

high = mid - 1

}

else {

return mid

}

}

return -1 // not found

}

63
New cards

Constant

O(5) has a _____ runtime complexity.

64
New cards

log-linear

o(N log N) has a ________ runtime complexity.

65
New cards

quadratic

O(N + N^2)

66
New cards

linear serach

O(N)

67
New cards

selection sort

O(n^2)

68
New cards

log_2(key)

BinarySearch number of times to find num

69
New cards

X is on both sides of equation

What makes a function recursive?

70
New cards

sorted

a list passed to binary_search needs to be...

71
New cards

shell sort

Starts by sorting pairs of elements far apart from each other, then progressively reducing the gap between elements to be compared. Starting with far apart elements can move some out-of-place elements into position faster than a simple nearest neighbor exchange.

72
New cards

gap value

Z+ representing the distance between elements in an interleaved list; specifies the number of interleaved lists