Aditya Chatterjee's Blog, page 87

May 30, 2022

Person re-identification ReID

In this article, we have explored the idea behind Person re-identification ReID applications, techniques for ReID and real world applications.

Table of contents:

Person re-identification ReIDRe-Identification With Deep Learning WorksUnsupervised Re-Identification with Deep LearningDeepSORTSiamese NetworksVariational AutoencodersApplications of Person re-identification ReIDPerson re-identification ReID

In short, Person re-identification ReID is the task of using a picture of a person ...

 •  0 comments  •  flag
Share on Twitter
Published on May 30, 2022 05:06

Min and Max element in array

In this article, we have explained how to use a Divide and Conquer approach to find the Minimum and Maximum element in array using the theoretically minimum number of comparisons.

Table of contentsProblem or StatementMethods to approach the SolutionApproach-1: Using Brute forceApproach-2: Using Divide and ConquerConclusionLet's understand the Problem

Given an array a[] of size 'n', we need to find the minimum and maximum elements in the array using minimum comparisions.

For example:Let...
 •  0 comments  •  flag
Share on Twitter
Published on May 30, 2022 05:02

Print all combinations of factors

In this article, we will discuss about the algorithms to print every combination of factors of a given number (all factorization). We have explored recursive and partially iterative approach.

What we'll see,

Problem StatementIterative ApproachRecursive ApproachConclusionReferencesProblem Statement

We have to design and implement an algorithm which prints all the unique combinations of factors of the given number. For example, let the number given be 16, therefore, the output should be as ...

 •  0 comments  •  flag
Share on Twitter
Published on May 30, 2022 05:00

May 26, 2022

Generate 0 and 1 with 25% and 75% probability

Given a function that generates 0, 1 50% of the time (like most of the random function in modern programming languages do), how can we design a function that return 0, 1 25%, 75% of the time?

Let's lay out a rule: random functions that return floating points are not allowed to be used. One can only use the said function that returns 0, 1 in equal probability since one can easily set a floating point as a threshold and return 0, 1 according to the exceedance threshold values.

📚ContentMaths and ...
 •  0 comments  •  flag
Share on Twitter
Published on May 26, 2022 07:02

Commonly Used Neural Networks

Neural Networks are soft computing systems which aim at simulating the function of the human brain. Since the human brain is fantastic at reasoning, processing and learning in environments of noise, uncertainty and imprecision; implementing Neural Networks allows us to solve very complex, mathematically ill-defined problems using very simple computational operations (such as addition, multiplication, and fundamental logic elements). They are essentially networks consisting of multiple artificial...

 •  0 comments  •  flag
Share on Twitter
Published on May 26, 2022 06:56

May 24, 2022

CRUD operation using hibernate in MySQL database

In this article, we are going to learn how to develop an application that performs the CRUD operations in MySQL database using hibernate. Here we will develop a command line application but the same procedure can be used to develop any other type of application like GUI, webapp etc.

Prerequisites

The learner

should be familiar with basics of Javashould have Java installed on their respective machineshould have MySQL database installedshould have a modern IDE like Eclipse, IntelliJ Idea etc....
 •  0 comments  •  flag
Share on Twitter
Published on May 24, 2022 14:05

May 23, 2022

Linked Hash Set in Java

In this article, we will understand the LinkedHashSet Class which has been included in java.util since version 1.4.

Table of Contents:

Introduction and InheritanceSet in JavaHashSet in JavaLinkedHashSet in JavaExample UsageComplexityIntroduction and Inheritance

A Linked Hash Set is a time-efficient way to store and retrieve data. The class LinkedHashSet has been included in every Java version since 1.4. To use this class, you will first need to import java.util.LinkedHashSet.

LinkedHashS...

 •  0 comments  •  flag
Share on Twitter
Published on May 23, 2022 12:36

Asymptotic Analysis

In this article, we will be discussing about the idea of Asymptotic Analysis of Algorithms, 3 asymptotic notations used to represent the time complexity of an algorithm along with examples and much more.

ContentsIntroductionNotion of EfficiencyAsymptotic NotationsBig OhBig OmegaBig ThetaAsymptotic ObservationsAsymptotic analysis by taking limitsExamples with growth rateExamples of asymptotic formulasExample with an AlgorithmAnalysing AlgorithmsWhich should be choosen?Introduction...
 •  0 comments  •  flag
Share on Twitter
Published on May 23, 2022 03:35

May 22, 2022

Skyline Problem

In this article, we have explained an efficient approach to solve the Skyline Problem using a Divide and Conquer algorithm.

ContentsProblem StatementImp points to find to solve the problemFinding answers to the pointsCodeInputOutputTime and Space ComplexityProblem Statement

We are given start point,end point and height of rectangles which forms the buildings.We have to find the skyline formed by these rectangles collectively.

What is a skyline?

A city's skyline is the outer contour of ...

 •  0 comments  •  flag
Share on Twitter
Published on May 22, 2022 15:03

Token Classification in Python with HuggingFace

In this article, we will learn about token classification, its applications, and how it can be implemented in Python using the HuggingFace library.

Table of ContentsWhat are tokens?What is token classification, and how is it used?IOB Tagging FormatToken classification implementation using HuggingFaceConclusionWhat are tokens?

Tokens are smaller units of a piece of text, separated by punctuation (period, comma, etc.) or whitespace (space, newline, etc.).

For an example, let's take a look ...

 •  0 comments  •  flag
Share on Twitter
Published on May 22, 2022 10:17