Height, Level, External node(s), Internal node(s), Depth of a node, Degree of a node, Ancestor(s) of a node, Descendant(s) of a node
1.Code structure for overflow condition in queue
top == n-1
2.Insertion at begining algo
begin IF N = MAX, return ELSE N = N + 1
For All Elements in A Move to next adjacent location A[FIRST] = New_Element
end
3.linear search algo
Step 1: Set i to 1
Step 2: if i > n then go to step 7
Step 3: if A[i] = x then go to step 6
Step 4: Set i to i + 1
Step 5: Go to Step 2
Step 6: Print Element x Found at index i and go to step 8
Step 7: Print element not found
Step 8: Exit
4) draw a tree structure
Height=4
Level=4
Degree Of A=2
B and C internal node
Comments
Leave a comment