Menu Close

Beginning Bash GNU

Why bash? Because bash is everywhere. It may not be the newest, and it’s arguably not the fanciest or the most powerful (though if not,…

Unzipping Files using Python

To extract or uncompress a tarball, ZIP, or gzip file, Python’s tarfile, zipfile, and gzip modules are provided respectively. Python’s tarfile module provides the TarFile.extractall(path=”.”,…

Floyd-Warshall Algorithm

All Pair Shortest Path Algorithm Floyd-Warshall’s algorithm is for finding shortest paths in a weighted graph with positive or negative edge weights.A single execution of…

Odd-Even Sort

An Odd-Even Sort or brick sort is a simple sorting algorithm, which is developed for use on parallel processors withlocal interconnection. It works by comparing…

Search an Element

Java program How to sort an array and search an element inside it Input: Array length followed by array elements and the element to be…

Racing Horses

Chef is very fond of horses. He enjoys watching them race. As expected, he has a stable full of horses. He, along with his friends,…

Japanese Sake

Sake is an alcoholic beverage of Japanese origin made by fermenting rice that has been polished to remove the bran. It’s a popular drink in…

The Lost explorer

Challenge: You are a programmer tasked with helping a lost explorer navigate their way out of a dense jungle. The explorer has a map with…

Vacuum Pumps in Early Computing

Vacuum pumps played a crucial role in the early stages of computing, particularly in the development of thermionic emission valves (also known as vacuum tubes).…

Travelling Salesman Algorithm

Brute Force Algorithm A path through every vertex exactly once is the same as ordering the vertex in some way. Thus, to calculate theminimum cost…