Pert5 Flashcards

1
Q

4 kondisi jika mau hapus doubly linked list?

A
  • The node to be deleted is the only node in linked list.
  • The node to be deleted is head.
  • The node to be deleted is tail.
  • The node to be deleted is not head or tail.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Threaded binary tree?

A

store null pointer di kiri dan kanan field. jadi null pointer tersebut point ke node yang ada isinya.

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

4 properti binary tree?

A

– Every node has a key and no two nodes have the
same key (keys are unique).
– Left sub tree’s keys are smaller than root’s key.
– Right sub tree’s keys are larger than root’s key.
– The left and right sub trees are also binary search tree (recursively).

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

Degree adalah?

A

jumlah maksimum child dari node yang disebut. jika hanya disebut degree of tree. coba liat node yang paling banyak child nya.

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

perfect binary tree?

A

itu kiri sama kanan sama total

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

perfect binary tree juga disebut?

A

complete binary tree

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