Aditya Chatterjee's Blog, page 84

June 17, 2022

Lexicographic rank of string

We will see what is the rank of the string in lexicographic order, for the words which can be made using all the characters of the given string and calculate using a string algorithm.

What is lexicographic rank of the string??

Suppose, we are given a string "BAR" and we need to find its lexicographic rank then, what we can do is write down all the lexicographic permutations of that string and then, the position at which this string "BAR" appears will be the lexicographic rank of that string.

For...

 •  0 comments  •  flag
Share on Twitter
Published on June 17, 2022 12:55

June 15, 2022

NullPointerException in Java

Introduction

Any developer beginning their Java programming journey will inevitably come across a certain error: the NullPointerException. The NullPointerException is one of the most common errors encountered by beginner programmers when dealing with objects in Java.

So what exactly is a NullPointerException? How exactly does this error happen? What are some ways to avoid these errors?

To answer these questions, we will discuss the following concepts:

Primitive vs. reference typesThe null valu...
 •  0 comments  •  flag
Share on Twitter
Published on June 15, 2022 08:19

Split String in C++ [3 ways]

In this article, we will see different ways a string can be splitted in C++. This involve the use of find(), substr() and much more.

Breaking or Fragmenting a String in a number of words is called Splitting of string. There is no predefined function to split a string into number of substrings so we will discuss a number of ways in which we can do the spitting

Some Methods of Splitting a String in C++1. Using find() and substr() Functions

Using this method we can split the string containing deli...

 •  0 comments  •  flag
Share on Twitter
Published on June 15, 2022 08:17

Clear Console in C

During the execution of the program, the developer needs to clear the screen or remove the previous output for new output. To clear the console screen in the c language many methods are available.

Here are some of the following :

Clrscr() functionSystem(“clear”) functionSystem(“cls”) functionImportant Note :

This function depends on the type of operating system, compiler, and other factors.
For example: If you try to compile the program using the clrscr() function in a modern compiler then ...

 •  0 comments  •  flag
Share on Twitter
Published on June 15, 2022 08:15

June 12, 2022

Introduction to Feature Engineering

In this article, we will be learning about an important step in the machine learning process: feature engineering.

Table of ContentsIntroductionInstallation/SetupLoading the DatasetFeature Generation and TransformationMathematical TransformsParsing Complex Data TypesBinningScalingDetermining Feature Importance Using Mutual InformationTesting and ResultsConclusionIntroduction

The goal of feature engineering is to make data better for the problem you are trying to solve using mach...

 •  0 comments  •  flag
Share on Twitter
Published on June 12, 2022 02:30

June 9, 2022

System Design of Bank Management System

In this article, we will take a look at the key features a bank management system needs to offer, its high-level, low-level design, database design, and some of the already existing bank management systems.

Table of Contents:

Bank Management SystemSystem RequirementsFunctional RequirementsNon-Functional RequirementsSoftware RequirementsHigh-Level DesignMonolithic ArchitectureEvent-Driven ArchitectureLow-Level DesignDatabase DesignLeading Bank Management SystemsBank Management ...
 •  0 comments  •  flag
Share on Twitter
Published on June 09, 2022 14:33

June 8, 2022

Python script to get CPU and RAM Usage

In this article, we have developed a Python script to get CPU and RAM Usage on a system using psutil library. We extend it to get CPU and RAM usage for each process and for each core.

Table of contents

Following is the list of what we will achieve in this article:

Introduction to psutil library in python,Print overall CPU usage using psutil,Print overall RAM usage using psutil,Get resource usage for each individual process,Get CPU usage for each individual core.Introduction to psutil

psut...

 •  0 comments  •  flag
Share on Twitter
Published on June 08, 2022 13:27

Performance Comparison of Different Models and Data Preprocessing Techniques

In this article, we will be comparing the performance of different data preprocessing techniques (specifically, different ways of handling missing values and categorical variables) and machine learning models applied to a tabular dataset. We will go over all the steps separately and them combine them in the end.

Table of ContentsIntroductionInstallation and SetupDataset Loading and PreparationHandling Missing ValuesHandling Categorical VariablesDifferent Machine Learning ModelsTesting, R...
 •  0 comments  •  flag
Share on Twitter
Published on June 08, 2022 12:27

Fuzzy Inference System: Introduction

In this article, we will discuss a few fundamental concepts that govern the functioning of Fuzzy Systems. We will also discuss some of their real world applications while comparing and contrasting them to Crisp (Hard Computing) Systems.

Table of contents:

Introduction to Crisp SystemWhat Does 'Fuzzy' Mean?How Fuzzy Inference Systems WorkConclusionIntroduction to Crisp System

Before we talk about Fuzzy Systems, it's important for us to know about Crisp Systems. Crisp Systems (or traditional...

 •  0 comments  •  flag
Share on Twitter
Published on June 08, 2022 07:04

June 7, 2022

Data Structure used for Recursion

In this article, we will explore stack and its properties and operation, then we will cover recursion and explain why stack is used for recursion, finally we will discuss how to convert recursive to iterative approach.

Table of contents:

Introduction to StackAdd Elements into StackDelete Elements from StackRecursionStack for RecursionConverting Recursive to Iterative Approach

In short, the Data Structure used for Recursion is Stack (LIFO) Data Structure.

Pre-requisites:

Stack data struct...
 •  0 comments  •  flag
Share on Twitter
Published on June 07, 2022 17:27