for test Flashcards

1
Q

Recursion

A

Function calling itself due to a c9ndition being met base case
Has stopping condition so it can exit
Don’t specify how many times called

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

UML

A

unique moddling language,used to to present information so many people can understand and communicate

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

OOP pros and cons

A
pros:
easy to use classes
create objects easily
less likely to overwrite original data
easy to test
cons:
difficult to learn
less effecint
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Backtracking

A

if one pathway to a solution fails the search for successful path begins at last successful point

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

data mining

A

finding patterns in large sets of data

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

pipelining

A

handling instructions abd completing a task while previous is completed
ouput 1=input 2

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

big o

A

measuremnt of time complexity of an algorithm

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

tree

A

https://en.wikipedia.org/wiki/Tree_(data_structure)

connected unidirected graph
pre order-NLR
in-order-LNR
post order-LRN

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

graph

A
can be bidirectional
can be shown with :
matrix and adjacency list
used for searcing
graph can be cylical
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

linked lists

A

data structure where each element has a seperate object.
eczh node points to the element.each node points to teh next element
pro:
saves memory
con:
no direct acess

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

binary search

A

1) find midpoint
2) if midpoint=searching val then retrun index poistion
3) if mid> serached val, the UB= mid-1 and step 2
4) if mid

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

Linear search

A

1) pointer of 0
2) if searched val =list[pointer] then return poistion
3) if not pointer=pointer +1 and step 2

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

Queue

A
FIFO data structure
enqueue:
IF f=N
   error full
ELSE
   f+1-=item
dequeue
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

plymorphism

A

using a method in different forms depending on the class

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

class

A

template for instances

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

attributes

A

variables in class

17
Q

object

A

instance of class that shares same atributes

18
Q

methods

A

sub routines in class

19
Q

insertion sort

A

1) 2 lists(sorted,unsorted)
2) unsorted item compared to sorted
3) if bigger put after if smaller put before
4) repeat from step 2