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 PythonThe 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...
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 provides a well-documented and easy-to-follow guide for developers. The official documentation covers all the essential to...
July 16, 2023
Swarm 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...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 ListenersConclusionAll 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...
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...
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:IntroductionRulesApproachImplementationOutputConclusionIntroductionWord 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...
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 CSSWe 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 ...
Selection Sort in Python using OOP concepts [Iterative + Recursive]
![Selection Sort in Python using OOP concepts [Iterative + Recursive]](https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/hostedimages/1690032720i/34485661._SY540_.png)
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...
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...
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 HashMapIntroductionA 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...