Aditya Chatterjee's Blog, page 24

July 17, 2023

Union() function in Python

In this article at OpenGenus, we have explored Union() function in Python with multiple examples.

Table of contents:

Union() function in PythonPython Union() Function on Two SetsPython Union() Function on Three SetsPython Set Union Using the | OperatorPython Set Union() Method on StringConclusionUnion() function in Python

The Python Union() method in sets creates a fresh set that includes all the elements found in the initial set.

The union of two sets refers to a set that combines all t...

 •  0 comments  •  flag
Share on Twitter
Published on July 17, 2023 10:39

Next.js Framework for Production

Next.js Framework for Production

Next.js has become a popular choice among web developers for building production-ready applications. This versatile framework combines the power of React with server-side rendering (SSR) capabilities, making it an excellent option for modern web development. In this article at OpenGenus, we will explore the various aspects of Next.js as a production-ready framework.

Next.js Framework for Production

Next.js provides a well-documented and easy-to-follow guide for developers. The official documentation covers all the essential to...

 •  0 comments  •  flag
Share on Twitter
Published on July 17, 2023 02:29

July 16, 2023

Swarm Intelligence for Distributed Data Structures

AbstractSwarm Intelligence for Distributed Data Structures

Distributed data systems provide a way of organising and managing data across interconnected computers or devices. It provides benefits such as scalability, fault tolerance and data synchronization. However, they also present challenges such as complexity and network latency. Swarm intelligence offers a solution by enabling self-organization and providing decentralized decision-making and collaboration among nodes to collectively solve complex problems and achieve goals.

Table of Conten...
 •  0 comments  •  flag
Share on Twitter
Published on July 16, 2023 10:42

Bubble Shooter game in HTML/CSS and JS

Table of Contents:

IntroductionBubble Shooter GameOverall Implementation StrategyGame StructureGeneral FlowGame TemplateCSS User InterfaceJavaScriptInitializationHelper FunctionsBubble CreationBubble Matching and RemovalInitialization and Game LoopKeyboard Event ListenersConclusion

All of the source code for this application can be found here: https://github.com/OpenGenus/Bubble-Shooter-game-in-HTML

Introduction:

In this article at OpenGenus, we will explore the popular game call...

 •  0 comments  •  flag
Share on Twitter
Published on July 16, 2023 06:07

July 15, 2023

Car racing game in HTML, CSS, JS

Table of Contents:

IntroductionCar racing gameDemonstrationOverall Implementation StrategyRequirements of the GameGame StructureGeneral FlowGame TemplateCSS StylingJavaScriptVariables and Event ListenerskeyDown and keyUp functionsisCollide functionmoveLines functionendGame functionmoveCar functiongamePlay functionReset functionstart functionConclusionIntroduction:

In this article at OpenGenus, we will discuss and demonstrate the creating of a car racing game using HTML, CSS...

 •  0 comments  •  flag
Share on Twitter
Published on July 15, 2023 06:07

July 14, 2023

Word Scramble game in HTML and JS

In this article at OpenGenus, we are going to develop the word Scramble game in HTML, CSS and JavaScript.

Table of contents:IntroductionRulesApproachImplementationOutputConclusionIntroduction

Word Scramble is a classic word game that challenges players to form words using letter tiles and score points based on the letters' values. In this article, we will explore how to build a Word Scramble game using HTML and JavaScript. By following these step-by-step instructions, you will be able t...

 •  0 comments  •  flag
Share on Twitter
Published on July 14, 2023 23:52

3 CSS levels

CSS, short for Cascading Style Sheets, is utilized to apply styles to web pages that include HTML components. It manages various attributes of web page elements, such as the background color, font size, font family, and color.

There are three categories/ levels of CSS:

Inline CSSInternal or embedded CSSExternal CSS

We will dive into each level.

1. Inline CSS: Inline CSS refers to the inclusion of CSS properties within the body section of an element. The style attribute is employed to define ...

 •  0 comments  •  flag
Share on Twitter
Published on July 14, 2023 05:11

Selection Sort in Python using OOP concepts [Iterative + Recursive]

Table of content:Introduction to selection sortSelection Sort in Python: OOP-basedAttributesMethodsImplementationApproaches to implement Selection sortTime and Space ComplexityApplicationQuestionsIntroduction to selection sortSelection Sort in Python using OOP concepts [Iterative + Recursive]

Selection sort is a basic sorting algorithm applied to a list. It works by repeatedly finding the smallest element from the unsorted part of the list and swapping it with the first element. This process continues until the entire list is sorted. At each iter...

 •  0 comments  •  flag
Share on Twitter
Published on July 14, 2023 03:36

Understanding Label Smoothing

In the realm of deep learning, label smoothing has emerged as a powerful technique for improving the generalization and robustness of neural network models.

Traditional classification tasks often involve assigning a single binary label to each sample, assuming that the ground truth is always certain. However, this assumption may not hold in practice, leading to overconfident predictions and reduced model performance on unseen data. Label smoothing addresses this issue by introducing a controlled...

 •  0 comments  •  flag
Share on Twitter
Published on July 14, 2023 03:34

Hash Map in Java using OOP concepts and Generics

In this article at OpenGenus, we will implement Hash Map in Java using OOP concepts and Generics.

Table of ContentsIntroductionCode ExplanationImplementationApplications of HashMapTime Complexity of HashMapIntroduction

A HashMap in Java is a data structure that provides an efficient way to store and retrieve key-value pairs. It is part of the Java Collections Framework and is based on the concept of hashing. It allows constant-time performance for basic operations like insertion, retriev...

 •  0 comments  •  flag
Share on Twitter
Published on July 14, 2023 03:13