for test Flashcards
Recursion
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
UML
unique moddling language,used to to present information so many people can understand and communicate
OOP pros and cons
pros: easy to use classes create objects easily less likely to overwrite original data easy to test cons: difficult to learn less effecint
Backtracking
if one pathway to a solution fails the search for successful path begins at last successful point
data mining
finding patterns in large sets of data
pipelining
handling instructions abd completing a task while previous is completed
ouput 1=input 2
big o
measuremnt of time complexity of an algorithm
tree
https://en.wikipedia.org/wiki/Tree_(data_structure)
connected unidirected graph
pre order-NLR
in-order-LNR
post order-LRN
graph
can be bidirectional can be shown with : matrix and adjacency list used for searcing graph can be cylical
linked lists
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
binary search
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
Linear search
1) pointer of 0
2) if searched val =list[pointer] then return poistion
3) if not pointer=pointer +1 and step 2
Queue
FIFO data structure enqueue: IF f=N error full ELSE f+1-=item dequeue
plymorphism
using a method in different forms depending on the class
class
template for instances