Tag: Algorithm

Training the TikTok Algorithm

Like many elder-Millenials, I joined TikTok shortly after the first lockdown’s isolation and monotony kicked in. I figured I’d see what was up with this platform, expecting to find stupid dances and ridiculous trends that would keep me entertained for maybe a few days. Well, it’...

Nested Shape Algorithm:

This was a problem I encountered while working on a Java program which involves mostly some geometry and some algorithm analysis, so I hope you enjoy. Consider this problem. You have a bunch of 2D shapes stored as Shape objects, with dimensional attributes, that you need check for the ability to ...

1994: A Brief Introduction to Shor???s Algorithm For Quantum Computers

Classical computers rely on algorithms that become increasingly inefficient as the size of the number to be factored grows larger. This is known as the difficulty of factoring large numbers using classical methods. In contrast, Shor’s algorithm exploits the principles of quantum mechanics to a...

Flocking Algorithm: Simulating Collective Behavior in Nature-inspired Systems

The Flocking Algorithm is a computational model inspired by collective behavior observed in nature, such as birds flying in formations or fish swimming in schools. It simulates emergent behavior in groups of entities by applying three principles: alignment, cohesion, and separation. ...

Practical Introduction to Hartree-Fock Algorithm using Python

I will assume you have read the first three chapters of “Modern Quantum Chemistry” by Szabo and Ostlund, or any other similar book, or have taken an introductory course into computational quantum chemistry. I will be referring to said book throughout the post. The book is very cheap (&po...

How to Create an Equitable and Unbiased AI Algorithm for Criminal Justice

Last week, we talked about the problematic nature of the United States court system. With a system that promotes mass incarceration rates, instates Draconian drug laws, and hyper criminalizes the average person, most people agree with the sentiment that our court system is dysfunctional. We then dis...