Postingan

Menampilkan postingan dari Maret, 2018

Binary tree

Gambar
Pada binary tree hanya pemgembangan dari introductionnya Ini adalah gambar pelengkap dari introduction binary tree

Introduction to Binary Tree

Gambar
Mengenai tree concep adanya bebreapa koleksi Dan ini tambahan info untuk koding •           Node at the top is called as root . •           A line connecting the parent to the child is edge . •           Nodes that do not have children are called leaf . •           Nodes that have the same parent are called sibling . •           Degree of node is the total sub tree of the node. •           Height/Depth is the maximum degree of nodes in a tree. •           If there is a line that connects p to q, then p is called the ancestor of q, and q is a descendant of p. Konsep dari binary tree •           Binary tr...

Linked list II

Dalam implemen 2. Belajar mengenai Stack dan queue yg berupa antrian Perbedaannya yaitu Stack : yg terakhir masuk pertama keluar Sedangkan Queue :   terakhir masuk terakhir keluar Dan implementasinya dalam koding yaitu jika head   =NULL maka isinya kosong CTH Push 14 : 14 Push 25 : 14 25 Pop : 14 Push 30 : 14 30 Stack juga dapat digunakan untuk menghitung yaitu seperti Step Stack Prefix Insert Diatas adalah bagian yg digunakan                                 Prefix : operator, left, roght Infix : left, operator, right Postfix : left, right, operator Queue Contoh: Push : 30 : 30 Push 1: 30 1 Pop : 1 Push 39 : 1 39 Adanya juga priority queue yg digunakan untuk mengecek priority dahulu sebelum yg lainny