Aditya Chatterjee's Blog, page 57
January 25, 2023
Battle of the Titans: Comparing BART and BERT in NLP

In this article, we have explored the differences between two state of the art NLP models namely BERT and BART.
Table of contents:
IntroductionBackgroundComparisonSummaryConclusionIntroductionNatural Language Processing (NLP) is a rapidly growing field that aims to enable machines to understand and generate human language. One of the most important tasks in NLP is language understanding, which involves analyzing and interpreting text. In recent years, transformer-based models such as BER...
Calculator Console Application in Java
We will develop a Calculator Console Application in Java Programming Language that uses the previous result in the next calculation and includes Shunting Yard Algorithm.
We'll discuss:
IntroductionFeaturesUnderstanding the Shunting Yard AlgorithmHow to Implement the Shunting Yard Algorithm?Calculator Logic in JavaIntrodu...main() methodevaluate() methodhasPrecedence() methodapplyOp() methodWorking of evaluate() methodNeed of hasPrecedence() methodFurther ImprovementsConclusion
Techniques to detect Deepfake videos
Hello everyone, Today we are going to discuss one of the most morally sensitive subject in Artificial Intelligence world which are DeepFake and how we try to detect the deep fake from real.
Table of Contents:
Deepfake and its Generation.Problems of Deepfakes.Deepfake Detection using MesoNet-4.Datasets used.Other techniques..
We can define tge deepfake as realistic-looking falsified images and videos created by AI algorithms specially after the strong devel...
Cheatsheet for sorting algorithms
This is the complete cheatsheet for all the important sorting algorithms that comprises that will act as a summary of each concepts including time complexity, key weakness and strengths.
Table of contents:
Comparison Based SortingNon-comparison Based SortingHybrid SortingComparison Based SortingComparison-based sorting is a method of sorting elements in an array or list by repeatedly comparing pairs of elements and swapping them if they are not in the correct order.
It uses comparison oper...
Basic Ruby on Rails web App for static webpage
In this article, we will cover basics of Ruby on Rails (RoR) by creating a simple web application tutorial with a single static webpage.
Installing RailsTo install ruby on rails on your machine kindly follow rails guide
Creating first rails projectOn this tutorial we will create a rails project with the name blogApp. I will show you how to create your first rails project with a postgreSQL and mySQL. We will run all our commands using gitbash terminal.
MySQL
If you want to use MySQL with your r...
Assign Cookies problem
Assign cookies problem is a popular coding interview question which is mostly solved using greedy algorithm. Here, you will be given a list of children/siblings and a list of cookies with their sizes. Your goal is to maximize the number of children/siblings you can content with your cookies and output the number. If you want to know how to solve this problem, this article is for you.
Table of contents:
Problem StatementGreedy Algorithm ApproachExamine few examplesSolving the ProblemTime and...January 24, 2023
Multi-thread C++ program to find all prime numbers < N
In this article, we have developed a Multi-thread C++ program to find all prime numbers
IntroductionThere are many ways to generate prime numbers.
In this article we will focus on the Sieve or Eratosthenes, which has been implemented in this article too.
The downsize of this approach is that for each number, the algorithm waits to finish the marked numbers of the predecessor prime number;
Could we do that in parallel ?
A way of implementationMy approach is to use a matrix with N lines and 2 c...
January 23, 2023
Random Password Generator in C
In this article, we are going to build a random password generator in C Programming Language.
Define the ProblemWrite a function in C that takes an integer as input and provide a string of certain length of pseudorandom characters as the output. The goal is to let the output meet some basic security requirement, which includes a certain length and the character set. To achieve this, we first want the output to be "random" and unique each time. we also want the function to have as many output as...
January 22, 2023
Setprecision in C++
In this article, we will be discussing about Setprecision in C++ in detail along with C++ code examples.
Contents:
Introduction to SetprecisionPropertiesSyntaxParameterReturn ValueProgram CodeExplanationComparision with other functionQuizIntroductionThe setprecision() method is present in the iomanip library.It allows the user to obtain a float or double data type's accurate value
With the help of this function, the user can get the precise value of a float or double data type.
The s...
Self-attention in Transformer
Hello everybody, today we will discuss one of the revolutionary concepts in the artificial intelligence sector not only in Natural Language Processing but also nowadays in the Computer Vision, which is the Transformers and the heart of it Self-Attention.
In our journey today ...