Python Programming Examples

Pythonic Way of Writing Code

In most programming languages, we often come across a claim saying that it’s the most powerful language. Well, this statement seems to be more subjective and why is it so? This is because a program written in one language can be coded in another language. The syntax may vary from language to language, but there

Pythonic Way of Writing Code Read More »

Implementing HashMaps in Python

Whenever we try to implement some kind of search logic through our data, we want it to be efficient. This may not be the case in small programs but with large applications with huge codebases, the searching, deletion, or modification time for running any kind of logic is supposed to be minimal. Dictionaries in Python

Implementing HashMaps in Python Read More »

Bidirectional Search in Python

Hello readers, in this article let’s try to understand what is bidirectional search, its advantages, disadvantages, and its implementation in python. Also read: Depth First Iterative Deepening (DFID) Algorithm in Python What is Bidirectional Search? A graph search algorithm called bidirectional search conducts two searches simultaneously. When the two searches meet at the midway, one

Bidirectional Search in Python Read More »

Depth First Iterative Deepening (DFID) Algorithm in Python

Hello readers, this article let us understand what exactly is Depth First Iterative Deepening (DFID) also known as Iterative Deepening Search (IDS). Its advantages, applications, and implementation in python. What is Depth First Iterative Deepening Search? Depth First Iterative Deepening is an iterative searching technique that combines the advantages of both Depth-First search (DFS) and

Depth First Iterative Deepening (DFID) Algorithm in Python Read More »