Bubble Sort implementation in Python [Data Structures & Algorithms]

This article deals with implementing Bubble Sort algorithm using Python programming language. Bubble Sort is a simple sorting algorithm that compares each element in the list with its adjacent element and sort that pair of elements if they are not in order. There can be multiple iterations while sorting. Each iteration can be named as … Read more

Hash Table implementation in Python [Data Structures & Algorithms]

This article deals with implementing Hash Table using Python programming language. Hash Table is a data structure where data are stored in an associative manner (in key, value format). The key/index is unique. This kind of storage makes it easier to find the data later on. Hash Table stores data into an array format. It … Read more

Binary Search implementation in Python [Data Structures & Algorithms]

This article deals with the binary search algorithm implementation in Python programming language. Binary search is an improvement to linear search. Binary search requires the searched list to be an ordered list, i.e. the list items should be sorted in ascending order (increasing order). Binary Search This algorithm is a good example of Divide and … Read more

Linear Search implementation in Python [Data Structures & Algorithms]

This article deals with the linear search or sequential search algorithm. It’s a very simple search algorithm. Linear Search In the linear search algorithm: We start searching a list for a particular value from the first item in the list. We move from item to item from the first item to the last item in … Read more