Algorithms

Top 10 algorithms

Top 10 Algorithms Every Programmer Should Know

This article highlights the top 10 algorithms that every programmer should be familiar with. From sorting and searching algorithms to more advanced concepts like dynamic programming and machine learning, these algorithms form the foundation of efficient problem-solving and are widely applicable in real-world software development.

Solving the Knapsack Problem

Solving the Knapsack Problem with Code Examples

The Knapsack Problem is a classic optimization problem in computer science and mathematics. The goal is to maximize the value of items placed in a knapsack without exceeding its weight capacity. This problem has many variations, but the most common are: 0/1 Knapsack Problem: Each item can either be included or excluded. Fractional Knapsack Problem: Items can be divided to maximize value.

succeed in the coding interviews

How to succeed in the coding interviews?

The coding interview platform provided by several kinds of organizations is considered to be the best possible way of recruiting people who are the best fit for the organization. At the time of hiring the people for technical jobs, it is very much important to judge their technical skills and the first barrier to entry in this particular concept can be termed as the technical or coding interview.

c-algorithms-library

C Algorithms Library

This article is about a collection of common Computer Science algorithms which may be used in C projects. The C Programming Language has a much smaller Standard Library as compared to other more modern programming languages such as Java or Python. The library provides a basic set of mathematical functions, string manipulation, type conversions, and file and console-based I/O.

Kruskal's Algorithm

Kruskal’s Algorithm

This is the implementation of Kruskal’s Algorithm in C and C++ Programming Languages. This algorithm is directly based on the generic MST (Minimum Spanning Tree) algorithm. Kruskal’s algorithm is a greedy algorithm in graph theory that finds a minimum spanning tree for a connected weighted graph. It finds a subset of the edges that forms a tree that includes every vertex, where the total weight of all the edges in the tree is minimized.

Porter's Algorithm in C

Porter’s Algorithm in C

Originally written in 1979 at Computer Laboratory, Cambridge (England), it was reprinted in 1997 in the book “Readings in Information Retrieval”. Initially it was written in BCPL language. Here is the list of implementations in other programming languages including C, Java and Pearl implementations done by author himself.

Scroll to Top