# Algorithms

December 26, 2016

Tower of Hanoi game is a puzzle invented by French mathematician Édouard Lucas in 1883. History of Tower of Hanoi There is a story about an ancient temple in India (Some say it's in Vietnam - hence the name Hanoi) has a large room with three towers surrounded by 64 golden disks. These disks are […]

December 17, 2016

Even after reading many articles on Banker's algorithm and Europe's deadlock several times, I couldn't get what they were about. I didn’t understand the algorithm could have solved with the debt crisis. I realized I would have to go back to the basics of banking and figure out answers to these: How do banks work? How […]

December 9, 2016

Toward the end of the 19th century, Russia-born Polish economist, Ladislaus Bortkiewicz came up with a strategy to predict the incidence of deaths among Prussian soldiers from horse kicks. And he did this how? He applied the Poisson distribution. It ended becoming a famous example by the way. Fast forward a bit... Poisson distribution can […]

November 16, 2016

In 1970, John Horton Conway came up with an algorithm, often termed the “Doomsday Algorithm.” (Though it had no relation to December 21, 2012 — the predicted doomsday) to quickly calculate the day of a week without resorting to anything but a few calculations in your head. (It is easy to memorize, so don’t […]

November 15, 2016

Many young programmers scour the web trying to find answers to this question: How to study Algorithm and Data structure? Certainly, a good place to start... But I believe a more relevant question would be this: What are algorithms and data structures, and why should I study them? Let’s start with this motivating quote: “Every […]

October 20, 2016

Over the last decade or so, there have been dozens of open source software applications that have revolutionized technology stacks across the world. From Linux to Mozilla, the developer community has given birth to tons of amazing concepts. And one such software that has an exponentially growing user base is Redis — an open source […]

October 6, 2016

Moving from point A to point B is the prime requirement for many games—whether it is a strategic tactic-based RPG (role-playing game) like Warcraft III or one that’s as simple as Snakes and Ladders. The source-to-destination navigation sometimes requires more intelligence from your character than you believe,it needs to find the path with ease. You […]

Webinar Date: October 13, 2016

HackerEarth is pleased to announce a webinar on Approximation Algorithms, to help you learn from the best programmers and domain experts from all over the world. The webinar will help you understand Approximation Algorithms. Approximation Algorithms are used when we don't have deterministic solutions of the problems. In other way, we can say, that solutions are […]

September 23, 2016

Remember the scene from the Facebook movie, The Social Network where Mark Zuckerberg, while creating “Facemash” (the earlier version of Facebook), tells Eduardo Saverin, "I need the algorithm you used to rank chess players” who then writes an equation on the glass panel? That equation is called the Elo rating or Elo rating system, […]

September 12, 2016

This post focuses on the impact that medical algorithms have in the field of healthcare where you must be a 100% right at all times. There is no room for errors because even the trivial errors can create a major impact. However, even the smartest and best-trained professionals are prone to errors. Tragedies due to […]