Aditya Chatterjee's Blog, page 7

April 9, 2024

Hierholzer’s Algorithm and Solving Reconstruct Itinerary Problem

In this article at OpenGenus, we will solve the problem called Reconstruct Itinerary Problem. This article will guide you through the intuition of how to solve the problem using the concept of Hierholzer’s Algorithm which is frequently asked in coding interviews of various tech companies.

Table of contents:Problem StatementHierholzer’s AlgorithmIntuition behind using Hierholzer’s Algorithm and ImplementationTime and Space Complexity1. Problem Statement

The problem statement for the Recons...

 •  0 comments  •  flag
Share on Twitter
Published on April 09, 2024 12:59

April 8, 2024

Creating UPD Asynchronous Client Server in C++ using Boost.Asio

A UDP (User Datagram Protocol) connection is a lightweight, connectionless communication protocol that operates without establishing a direct connection between sender and receiver. It's commonly used for tasks where speed and efficiency are prioritized over reliability, such as real-time streaming or gaming. Boost.Asio is a C++ library that provides asynchronous I/O and networking functionalities.

It can be utilized to create UDP connections in a straightforward and efficient manner, handling t...

 •  0 comments  •  flag
Share on Twitter
Published on April 08, 2024 13:07

April 7, 2024

Creating TCP Asynchronous Client Server in C++ using Boost.Asio

A TCP (Transmission Control Protocol) connection is a communication channel established between two endpoints over a network. It provides reliable, ordered, and error-checked delivery of a stream of bytes between applications running on hosts (computers) connected to the network.

Boost.Asio is a C++ library that provides asynchronous I/O functionality and networking support. It offers an abstraction over low-level networking operations, making it easier for developers to create efficient, scalab...

 •  0 comments  •  flag
Share on Twitter
Published on April 07, 2024 13:06

April 6, 2024

Basics of C++ Boost.ASIO

Boost.Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.

Note : To compile the code snippets provided , you need to setup the boost library first using the instructions provided here.

Table of contents:IntroductionInstalling BoostBasic Boost.Asio AnatomyCallback Functions or Completion HandlersBinding Arguments to a HandlerConclusion1. Introduction

Many programs engag...

 •  0 comments  •  flag
Share on Twitter
Published on April 06, 2024 13:03

March 30, 2024

AMD vs Intel: Better company to work for

AMD vs Intel: Better company to work for

Which team are you in? Blue or Red.

Once for over 3 decades, the semi-conductor industry was revolutionized and dominated by Intel but recently, over the last 5 years, things have changed significantly. AMD and NVIDIA has dominated the market and Intel has moved to the 5th position yet the legacy of Intel continues.

Few years ago, if one would have received offer from both Intel and AMD, there was a clear decision to accept the Intel offer but this has changed in the last 5 years.

To help you ch...

 •  0 comments  •  flag
Share on Twitter
Published on March 30, 2024 11:31

March 26, 2024

Password Generator using React

In this article at OpenGenus.org, we will learn about generating a password using React, JavaScript and Vite. To people who are new to Vite, it's a build tool that aims to provide faster and leaner web development experiences.

1-Pswd_Gen

Git Repo

Table of contents:Setting up the environmentProject StructureCreating the Password Generator ComponentCreating the Checkbox ComponentUtility to Generate a PasswordRunning the AppCode RepositorySetting up the environment with Vite

Vite is popular for th...

 •  0 comments  •  flag
Share on Twitter
Published on March 26, 2024 00:09

Responsive Image Grid

In today's web development crafting responsive and visually appealing layout is crucial. One common design element is an image grid, that is often used to showcase a collection of images in a visually pleasing manner, That is where Responsive Image Grids come in to play. In this OpenGenus article, we will create a responsive image grid using HTML and CSS.

Table of contents:

What is meant by a Responsive Image Grid.Prerequisites.step 1: Set up the HTML structure.Step 2: Add images.Step 3: S...
 •  0 comments  •  flag
Share on Twitter
Published on March 26, 2024 00:05

March 25, 2024

Basics of using PyTorch

Table of content

PyTorch - Some of unique featuresInstallation processTensorsDatasets and DataLoadersDeep Learning ModelPyTorch vs Tensorflow

PyTorch is an open-source deep learning framework primarily developed by Facebook's AI Research lab (FAIR). It provides a flexible and dynamic computational graph, making it particularly suitable for research and experimentation in deep learning tasks. Some of its unique features include:

Dynamic Computational Graphs: PyTorch uses a dynamic computa...
 •  0 comments  •  flag
Share on Twitter
Published on March 25, 2024 23:53

Position wise Feed-Forward Networks

Position-wise Feed-Forward Networks (FFN) are a crucial component in various sequence-to-sequence models, especially in the context of natural language processing and tasks like machine translation. These networks are often used in conjunction with self-attention mechanisms to process and transform information within sequences.

Table of contentTransformer- overviewImportance of Position-wise FFNNetwork DescriptionExamplesCode example using pretrained modelsKey points and summaryTransfor...
 •  0 comments  •  flag
Share on Twitter
Published on March 25, 2024 23:51

Everything about Sample Size

Table of contentsDefinationKey pointsFactors affectingExamplesImpact of population on sample sizeFormulas when population won't follow Normal DistributionSummaryWhat is sample size ?

Sample size refers to the number of individual observations or data points collected from a population for a specific study or analysis.

The key points for related to sample size

Representativeness: The sample should be representative of the population from which it is drawn. A larger and more diverse samp...

 •  0 comments  •  flag
Share on Twitter
Published on March 25, 2024 23:49