Aditya Chatterjee's Blog, page 117

February 7, 2022

Interprocess communication: Semaphores

In this article we discuss semaphores and how they are used for communication between processes in Linux.

Table of contents.Introduction.Allocating and deallocating semaphores.Semaphore initialization.Wait and post operations.Summary.References.Prerequisites.Shared memoryLinux threads synchronizationIntroduction.

IPC(Interprocess communication) is the transfer of data between processes.

Other than semaphores we have other types of interprocess communication namely,

Shared memory, ...
 •  0 comments  •  flag
Share on Twitter
Published on February 07, 2022 23:27

Interprocess communication: Shared memory

In this article we give an introduction to interprocess communication in Linux and discuss how processes use shared memory to communicate with each other.

Table of contents.Introduction.Shared memory.Conclusion.Summary.References.Prerequisites.Linux threadsLinux processes.Introduction.

IPC(Interprocess communication) is the transfer of data between processes. For example the command,

cat hosts.txt | xargs -n1 ping -c 2

will start the concatenation process as well as the ping proces...

 •  0 comments  •  flag
Share on Twitter
Published on February 07, 2022 21:48

Distributed Database Management System (Distributed DBMS)

In this article, we will take a look at distributed database management systems (Distributed DBMS) and their advantages and disadvantages along with examples.

Table of Contents:

What is Distributed DBMSHow is data stored in a distributed databaseTypes of Distributed DBMSAdvantages of Distributed DBMSDisadvantages of Distributed DBMSExamples of Distributed DBMSWhat is Distributed DBMS?

To understand what a Distributed Database Management System is, We must first get a recap of what a Data...

 •  0 comments  •  flag
Share on Twitter
Published on February 07, 2022 19:55

Introduction to Data Science

In this article, we will get to know what data science is, why is it becoming more sought after and also about its importance.

Table of contentsWhat is Data Science?Why is data science important?

What is Data Science?

A collection of facts or raw information is called data. Data science in simple words, is creating new ways of understanding the unknown from raw data and data analysis refers to collecting and manipulating data to derive insights and make predictions. Data science is well-kno...

 •  0 comments  •  flag
Share on Twitter
Published on February 07, 2022 19:22

Iterative Deepening Search

In this article, we are going to discuss about the Iterative Deepening Search Technique. It is also, known as Iterative Deepening Depth-First Search ( IDDFS) and is a modification of Depth First Search and Depth Limited Search.

Table of contents:

Recap of DFS and BFSDrawbacks of DFS and BFSDepth-Limited Search (DLS)Implementation of DLSIterative Deepening Depth-First Search ( IDDFS)Implementation of IDDFSTime ComplexityComparison between DFS, DLS and IDDFSConclusion

The main goal of an...

 •  0 comments  •  flag
Share on Twitter
Published on February 07, 2022 14:25

Binary Search Tree with Parent Pointer

In this article, we have covered Binary Search Tree with Parent Pointer which is a modification of the standard Data Structure, Binary Tree.

Table of contents:

IntroductionBinary Search Tree data structure with Parent PointerImplementation ExampleTime & Space ComplexityApplicationsIntroduction

A Binary Search Tree (BST) is a data structure where we store values in a tree form. Each node has a value and two child nodes associated with it. The left child node has a value smaller than the pa...

 •  0 comments  •  flag
Share on Twitter
Published on February 07, 2022 13:30

Backtracking Algorithm for Sudoku

In this article, we have covered the Backtracking Algorithm for Sudoku and compared with the Brute Force approach. We have presented the Time and Space Complexity for various cases.

Table of Contents1) Introduction2) Naive Approach3) Backtracking4) Time and Space Complexity5) Conclusion1)Introduction

Probably you might know what sudoku is or might have heard somewhere about it.Let's begin with a brief note on it.

Sudoku is a logic based number placement puzzle.

Given a 9...

 •  0 comments  •  flag
Share on Twitter
Published on February 07, 2022 13:14

Visualizing Neural Network Models in TensorFlow

In this article, we have explored the approach to visualize Neural Network Models in TensorFlow. We have explored how to use TensorBoard.

Introduction to Model Visualization

Unlike traditional programming, machine learning models can be unpredictable and hence tedious to manage. They can be very bulky programs with 500 lines of code when you are building models from scratch, or they can be 10-20 lines of code if you employ tensorflow, pandas, scikit-learn, kera and other libraries, which have d...

 •  0 comments  •  flag
Share on Twitter
Published on February 07, 2022 09:32

New features in TensorFlow v2.8

TensorFlow version 2.8 is the latest official release of TensorFlow. Let us take a look at some of the new features and improvements being rolled out in this version. TensorFlow is one of the most popular framework for writing Deep Learning and Machine Learning models. This new version comes with lots of additions, bug fixes and changes.

What's new?

Let us take a module-wise look at some of the additions and improvements

TensorFlow Lite (tf.lite):

TensorFlow Lite is the framework created specifi...

 •  0 comments  •  flag
Share on Twitter
Published on February 07, 2022 02:22

February 1, 2022

Favicon in HTML

In this article, we will explore the idea of favicons in HTML, syntax and how to add it to a webpage.

ContentsIntroductionBasic SyntaxAttributesExamplesIntroduction

A favicon is a small icon displayed left of the page title in a browser tab. It is loaded directly from the page requested, and is usually a logo representing the owner of the site. For example, the favicon of this site is the following image.

sq_logo

Any image format can be used for a favicon such as .jpeg, .png, or .svg. Usually we...

 •  0 comments  •  flag
Share on Twitter
Published on February 01, 2022 23:25