Selection sort
The idea of selection sort: iteratively find a smallest (or biggest) element in the remaining part of array and put […]
The idea of selection sort: iteratively find a smallest (or biggest) element in the remaining part of array and put […]
Bubble sort algorithm is the most famous sorting algorithm as it is studied in schools, universities and various computer courses.
Binary search algorithm is a widely used algorithm for sorted sequences. It can be utilized not only for searching, but
The BFS algorithm in Graphs implies the following:
Graph DFS algorithm is so similar to DFS in Trees. Two differences:– a graph node can have more than 2
There are 2 approaches to traversing a binary tree: use Depth-First search (DFS) and Breadth-First search (BFS). In case of
There are 2 approaches to traversing a binary tree: use Depth-First search (DFS) and Breadth-First search (BFS). In case of
To implement a simple binary tree, firstly we have to create a traverse function. Traverse function is used to find
Implementation of the Queue is so similar to a Stack. We operate with the queue using a FIFO-approach: add elements
Stack is also a type of LinkedList, but without the ability to retrieve i-th element. We can only retrieve (pop)