quick-references
Quick Sort vs Merge Sort
Quick sort is a comparison based sorting algorithm that follows the divide and conquer technique to sort the arrays. In quick sort, we usually use a pivot (key) element to compare and interchange the position of the element based on some condition. Merge sort is a most important sorting techniques that work on the divide and conquer strategies. It is the most popular sorting techniques used to sort data that is externally available in a file.
Posted September 12, 2022 by Rohith and Anusha ‐ 2 min read
BFS vs DFS
BFS i.e. Breadth-First Search, is a vertex-based technique for finding the shortest path in the graph. It uses a Queue data structure that follows first in first out. DFS i.e. Depth First Search, is an edge-based technique. It uses the Stack data structure and performs two stages, first visited vertices are pushed into the stack, and second if there are no vertices then visited vertices are popped.
Posted September 12, 2022 by Rohith and Anusha ‐ 3 min read
Binary Tree vs B Tree
A binary tree is the special type of general tree. Unlike B-tree, in a binary tree a node can have at most two nodes. In a binary tree, there is a limitation on the degree of a node because the nodes in a binary tree can’t have more than two child node(or degree two). B-Tree is known as a self-balancing tree as its nodes are sorted in the inorder traversal. Unlike the binary trees, in B-tree, a node can have more than two children.
Posted September 12, 2022 by Rohith and Anusha ‐ 1 min read
Data Type vs Data Structure
In general both data type and data structure seems to be the same thing as both deals with the nature and organizing of data but among two one describes the type and nature of data while other represents the collections in which that data can be stored.
Posted September 12, 2022 by Rohith and Anusha ‐ 2 min read
⌖ quick-references blog data-type data-structure differences
Single Linked List vs Doubly Linked List
Both Singly linked list and Doubly linked list are the implementation of Linked list in which every element of singly-linked list contains some data and a link to the next element, which allows to keep the structure. On the other hand, every node in a doubly-linked list also contains a link to the previous node.
Posted September 12, 2022 by Rohith and Anusha ‐ 2 min read
⌖ quick-references blog single-linked-list doubly-linked-list differences