Aditya Chatterjee's Blog, page 59
January 15, 2023
System Design for Elevator System
Understanding the problem (Elevator system)
Elevator system is a system that is used to move people from one floor to another floor in a building. Users must be able to request an elevator to a particular floor and the elevator must be a...
January 14, 2023
Advantages and Disadvantages of Huffman Coding

In this article, we will discuss about 5 advantages and 5 disadvantages of Huffman Coding.
Table of ContentsIntroduction to Huffman Coding5 Advantages of Huffman Coding5 Disadvantages of Huffman CodingComparison of Huffman Coding with other schemesConclusionIntroduction to Huffman CodingHuffman coding is a form of lossless data compression that is based on the frequency of symbols in a dataset.It is a prefix coding scheme, which means that the encoded data does not contain any redund...
January 12, 2023
2048 game using JavaScript
In this article, we have demonstrated how to develop web version of 2048 game using JavaScript, HTML and CSS. This is a good project for a Web Developer Portfolio.
Table of Contents:
Introduction to 2048 gameThe Composition / DevelopmentIntroduction to 2048 game2048 is a single-player sliding tile puzzle video game written by Italian web developer Gabriele Cirulli and published on GitHub. The objective of the game is to slide numbered tiles on a grid to combine them to create a tile with th...
Fabs and abs in C++
In this article, we have explained the fabs and abs functions in C++ Programming Language which are used to get the absolute value of different numeric values. We have compared the differences between fabs and abs as well.
CONTENTS:FabsAbsFabs and Abs ParametersSyntax of Fabs and AbsExample of Fabs and AbsApplication of fabs and AbsComplexity of Fabs and AbsDifference between Fabs and AbsWhat is Fabs and Abs?FabsThe Fabs function in the C++ returns the absolute value of the argument...
January 11, 2023
H-index problem
Calculate the researcher's h-index from an array of integer citations, where citations[i] is the number of citations a researcher obtained for their ith work.
According to the definition of h-index, a scientist has an index h if h of their n articles have at least h citations each, while the other n h papers have no more than h citations each.
In cases when h has multiple possible values, the highest value is used to determine the h-index.
Pre-requisite: Counting Sort
Example ...32 Keywords in C Programming
In this article, we will learn about all 32 keywords in C programming language and their uses.
As with other programming languages, there are words users are not allowed to use as variable names, a function name or expressions of any kind in C programming. These words are called Keywords.
Keywords are simply reserved words whose semantical meanings is already known to the compiler. If they are used outside their semantical meaning, it would result in a compilation error.
There are 32 keywords in...
January 10, 2023
Data Structures (DS) and Quick Revision
Data structures are a fundamental concept in computer science that provides a way to organize and store data in a computer so that it can be accessed and modified efficiently.
A data structure is a specific way of organizing and storing data in a computer so that it can be accessed and modified efficiently.
Types of Data StructuresWhen data is unstructured, it is not organized or doesn’t have a defined data model.
There are many different data structures are out there, but all can be classifi...
January 9, 2023
Find maximum, minimum and average of 4 subjects using structure in C
In this article, we have explained how to find the maximum, minimum and average of the marks of 4 subjects of different students using structure in C Programming Language.
Table of contentsProblem statementApproach to solveImplementationOutputProblem statementIn this problem, we have to find the maximum, minimum and average of 4 subjects using structures .
We will implement this problem in C Programming Language.
Approach to solveFollowing is the approach to solve the problem:
First we...Calculator console application in C++
In this article, we have explained how to develop a Calculator in C Programming Language as a console application. This is a strong beginner project for SDE Portfolio.
There are many ways to implement a simple calculator console.
When I first heared about calculator and C the first thing in my mind was to use the overloading arithmetic operators using the C super strong functionality.
They are basically regular functions with special names: their name begins by the operator keyword followe...
Matrix Multiplication in C
In this article, we are going to perform the matrix multiplication operation using C language. We will also be learning how to optimize it using Strassen's algorithm.
Table of Content:
IntroductionConcept of Matrix Multiplication OperationMatrix Multiplication in CTime ComplexityCache PerformanceOptimizing Matrix Multiplication using Stassen's MethodConclusionIntroductionA matrix is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns.
For example, the ...