![queue first in first out diagram](img/ee40d5ecf1e9d1f65fb5588ea32c5051.png"Queue")
FIFO representation
FIFO 表示
...
...
@@ -49,7 +49,7 @@ FIFO representation
![Demonstrating how front and rear indexes are modified during enqueue and dequeue operations](img/839247f58959fe9eff35f88034788ae4.png"Working of queue operations")
Working of queue operations
队列操作的原理
...
...
@@ -395,7 +395,7 @@ int main() {
![size of queue reduced after enqueuing and dequeuing](img/0102c607330d976b4cd074f442b68f1a.png"Queue representation")
![sample tree to learn tree traversal - root node contains 1 with leftchild as 12 and right child as 9\. The left child of root further has left child 5 and right child 6](img/d0cef13ebb42192a9a39cbd080eebd50.png"Tree Traversal")
Tree traversal
树的遍历
...
...
@@ -49,7 +49,7 @@ struct node {
![root node with left subtree and right subtree](img/b310000e943f7eec513765cdf7546e34.png"Left and Right Subtree")
Left and Right Subtree
左右子树
...
...
@@ -103,7 +103,7 @@ display(root->data)
![outlining left subtree, right subtree and root node](img/8a87c556f934ac5cb9aa04f9d88a45fb.png"Left and Right Subtree")
Left and Right Subtree
左右子树
...
...
@@ -113,7 +113,7 @@ Left and Right Subtree
![we put the left subtree, root node and right subtree in a stack in that order so that we can display root node and traverse right subtree when we are done with left subtree](img/03c0b83d4741fe39927cac2a8501db99.png"Stack")
Stack
栈
...
...
@@ -129,7 +129,7 @@ Left subtree -> root -> right subtree
![situation of stack after traversing left subtree, stack now contains the elements of left subtree, followed by root, followed by right child of root](img/aae971b9affa77adf32cf66c02c07d15.png"Stack")
![Comparison between full binary tree and complete binary tree](img/41d9dd7ec5f9366619865f1f46e85606.png"Comparison between full binary tree and complete binary tree")
Comparison between full binary tree and complete binary tree
完全二叉树与满二叉树的比较
![Comparison between full binary tree and complete binary tree](img/f89c25fb0c432c2848d2885b14cc34ef.png"Comparison between full binary tree and complete binary tree")
Comparison between full binary tree and complete binary tree
完全二叉树与满二叉树的比较
![Comparison between full binary tree and complete binary tree](img/f66efbaa73b350ca3831dc2a0a39bd87.png"Comparison between full binary tree and complete binary tree")
Comparison between full binary tree and complete binary tree
完全二叉树与满二叉树的比较
![Comparison between full binary tree and complete binary tree](img/86283613d9c6fe0e6223416c66266148.png"Comparison between full binary tree and complete binary tree")
Comparison between full binary tree and complete binary tree
完全二叉树与满二叉树的比较
...
...
@@ -61,7 +61,7 @@ Comparison between full binary tree and complete binary tree
![Complete binary tree creation](img/102b22745befe498a273190379c7b4ce.png "Put the second element as a left child of the root node and the third element as the right child")
12 个是左侧子级,9 个是右侧子级
12 是左侧子级,9 是右侧子级
...
...
@@ -70,7 +70,7 @@ Comparison between full binary tree and complete binary tree
![Complete binary tree creation](img/846541cb9b5dcce8a8f11e736bb6c9f3.png "Keep repeating until the last element is reached")
![a stack of plates is a good representation of stack data structure as you can only take out a plate from the top and put a plate on top of the other plates](img/6ce178843695b578fdd1800cf017c835.png"Pile of plates act as a stack")
Stack representation in the form of pile of plates
栈表示一堆板子
...
...
@@ -27,7 +27,7 @@ Stack representation in the form of pile of plates
![stack push pop fifo operations](img/cc824444cc125ecc85965558f6ac6b08.png"Stack operations")