Aditya Chatterjee's Blog, page 8
March 25, 2024
Zeller’s Congruence
Zeller's Congruence is a mathematical algorithm devised by Christian Zeller to calculate the day of the week for any date in both the Julian and Gregorian calendars. It provides a systematic approach for finding the day of the week, offering a valuable tool for programmers, historians, and anyone interested in calendar systems. In this blog post, we'll explore the intricacies of Zeller's Congruence, dissect its formulae, and provide insights into its implementation.
The Algorithm:...Comparing Different Programming Languages
The landscape of programming languages is vast and diverse, each with its own set of strengths and weaknesses. Developers often face the challenge of selecting the most suitable language for their projects, considering factors like performance, ease of use, ecosystem, and platform compatibility. In this comprehensive analysis at OpenGenus, we delve into the speed aspect of programming languages, examining the results of a performance test conducted on nine popular languages. Additio...
Quick Sort using Queue
Quick sort is a popular sorting alorithm that is relatively easy to understand and implement. In this OpenGenus article, you will learn:
What is Quick sort?How does Quick sort work?Implemention of Quick sort using a queue data structure.Drawbacks of Quick sort using a queue data structure.1. What is Quick Sort?The sorting algorithm known as Quick Sort employs a divide-and-conquer tactic. This method is simple to implement into code and efficient in terms of time. Additionally, quick sort ...
Smart pointers in C++
Gustafson's Law

Parallel computi...
February 25, 2024
Traffic Signboards used by Indian Railways
Have you ever seen the traffic signboards on roadside. I am sure you must have seen and you may also know how they help in safe movements of vehicles on road. Today I will discuss the traffic signboards that are used by Indian Railways for safe movement of trains on its tracks. So after reading this OpenGenus article your train journey is going to be more enjoyable if you will sit on window side and will observe these signboards and understand their meaning that they convey to Locopilots. So let...
February 16, 2024
Quick Styling - Inline CSS
Cascading Style Sheets, also known as CSS, is a markup language that determines how your web pages will appear. Cascading Style Sheets can manage the colors, fonts, and layouts of various website elements, as well as equip web developers and software engineers ...
February 3, 2024
Unveiling Web Audio API: A Symphony of Sound on the Web
In the early days of the web, audio playback relied on plugins like Flash. However, the introduction of the element in HTML5 and the Web Audio API changed the game, eliminating the need for plugins and offering developers a robust toolset for creating dynamic audio experiences directly within web applications.
Table of contents:
Core ConceptsPractical Use CasesWeb Audio Api DemoWeb Audio API FeaturesKey Takeaways (Web Audio API)Core Concepts:AudioContext:At the core of the Web Audio...January 31, 2024
Cluster Sampling
Cluster sampling is a probabilistic sampling approach wherein the population is divided into clusters, and a random subset of clusters is chosen for examination. Various cluster sampling methods exist, mainly differentiated by the formation of clusters and the manner in which sampling occurs within them.
Cluster sampling is a suitable method in several scenarios, and its appropriateness depends on the characteristics of the population, the research objectives, and practical considerations.
Table...January 30, 2024
Adding Popover in a Webpage
Popovers are overlays of content (essentially like pop-up boxes) which can be triggered upon clicking or hovering over an element in your webpage. As seen in the design of iOS, they are very helpful to provide and fit lots of secondary information about any topic or content described in element without taking up too much of the webpage space as they can be made visible or hidden as per the user's wish. In this OpenGenus article, we shall present to you 2 methods to implement a popover in your we...


