Traditional Algorithms vs. Machine Learning
A comprehensive dive into the definition, use cases, efficiency, positives and negatives
Introduction
In the modern world, we humans heavily rely on computer systems for various tasks, such as data processing, decision making, and automating various tasks. Ever wondered how the page ranking algorithms on search engines or facial recognition on our mobile phones work? Well, the answer lies somewhere in the different paradigms of traditional algorithms and machine learning! In the upcoming sections, we will be diving deep into the world of computing with traditional algorithms and complex, yet beautiful domain of machine learning.
What are traditional algorithms?
Traditional algorithms lay the foundation of computing. These are the algorithms which follow predefined rules to perform tasks and solve problems with precision. There won't be any harm in saying that the majority of modern computing, which we are about to discuss ahead, is somewhere built on top of traditional algos!
What is machine learning?
In the modern world of computer science, there are tons of buzz words out there… AI, AGI, ASI, machine learning, neural networks, deep learning, reinforcement learning, blah, blah! But to get a clear understanding of these, it is important to know what builds the foundation of some of those “buzz-words” mentioned above…
Machine learning is the domain of artificial intelligence, which deals with allowing computers to learn from data and improve with time. Concepts like neural networks, deep learning, NLP, etc. as mentioned above, actually are subsets of machine learning itself!

Similarities between traditional algorithms and machine learning algorithms
Traditional algorithms marked the beginning of computing, whereas AI and ML are the present and give us an idea of what can be achieved in the upcoming years for computing. BUT! There is one major similarity between the both. Maths.
Both traditional algorithms and ML algos heavily rely on mathematical foundations. Concepts such as linear algebra, graph theory, statistics, probability, and whatnot!
When you enter a prompt on our favourite chatbot, you are getting the desired answer, but at the core, the backend, there are countless no. of matrices multiplying with each other for that desired answer!!
A detailed comparison of differences between traditional algos and ML algos with the example of search engines:
A century back, the main collection of data was available in books, present in libraries. Today's library is the internet. The internet is huge. As of January 2025, there are about 1.2 billion websites on the internet, but there's a catch! Only about 200 million of these are active.
So, have you ever wondered, when you search for something, say on Google's search engine, how is it able to select the desired websites for you?
This is where the interesting part starts and will also help us understand the differences between the 2 paradigms of this blog!
Google's PageRank Algorithm:
This is our example for traditional, rule-based algorithms. PageRank (PR) algorithm was developed by Larry Page and Sergey Brin in the year of 1996, at Stanford University. This algorithm is a way of measuring the importance of web pages.
According to Google: PageRank works by counting the number and quality of links to a page to determine a rough estimate of how important the website is. The underlying assumption is that more important websites are likely to receive more links from other websites.
The math behind this: the algorithm outputs a probability distribution used to represent the likelihood that a person randomly clicking on links will arrive at any particular page.
Google's RankBrain and BERT algorithm:
PageRank was a revolutionary algorithm. But, with the advancements in technology, Google Search also kept evolving. This came in the form of integration of ML, Neural Networks and Natural Language Processing with page ranking.
RankBrain, launched in 2015 was Google's 1st AI powered algorithm. This algorithm incorporated the concepts of machine learning for better analysis and understanding of search requests, helping to curate results more dynamically. Unlike PR, which is rule based, RankBrain is an adaptive algorithm.
BERT, abbreviation for Bidirectional Encoder Representations from Transformers, launched in 2018, is another ML based model, helps Google search to understand the context of words in a query, improving NLP. In simple terms, NLP is the area of AI which deals with computers understanding the human language and improving upon the interactions.
Both the above mentioned algorithms are significant enhancements in Google Search. This also gives us an idea of how trained models differ from rule-based algorithms.
So basically, to sum it up, PageRank focuses on the keywords mentioned in a search request, and ranking pages on the basis of backlinks. Whereas, with the help of NLP, the newer models such as RankBrain, BERT are trying to understand the CONTEXT of what you are asking for.
Efficiency, Pros and Cons
Traditional algorithms, being predefined, work efficiently with specific tasks and structured data. The traditional algorithms have well-defined time and space complexities. These algorithms do not require cutting edge hardware to train upon, i.e., lesser RAM + GPU power is required. However, these might fail while working with larger, unstructured datasets.
Talking about ML algorithms, they are shaping the future of computing. They work efficiently with unstructured data and large datasets. Being dynamic as compared to traditional algorithms, ML excels in tasks such as image recognition. But to power those developments, there is a need for better hardware. For training ML models, there is a requirement of stronger GPUs, TPUs (Tensor Processing Units) for parallel processing, this means more capital and investments are required for optimizing those systems.
The major difference between the two is about adaptability. As we have seen in the above example, ML models are reliant on the real-time data / large datasets, traditional algos lack the adaptive nature, and often fail in various tasks
Conclusion
From the above sections, we have got to understand the difference between traditional algos and ML. This also answers the question asked in the 1st paragraph. Page ranking works on the basis of traditional algorithms, and in the modern world, it incorporates the modern technologies like ML and NLP for better results. Our mobile phones use computer vision, another domain of ML, to analyze an image, helping the system to know that the person in front of the camera is you!
So, to conclude, both the traditional algorithms and ML have their own strengths and use cases. One laid the foundation, the other is helping us create a better future for computing and technologies.
The future lies in creating technologies which make human life better and technologies that supersede what we have today!
Summary for Newsletter
In the modern world, most of us rely on computers and mobiles for various tasks. But have you ever wondered, what goes on in the backend of those tasks? Suppose you search for your favourite food's recipe, how is Google able to bring in all the answers so quickly? Or how is your phone able to unlock just by looking at our face? This article dives into the forever evolving world of computing, its foundation laid by traditional algorithms and how machine learning is changing the landscape for the future. Also, we will find the answers to the questions mentioned above!
Free Resources
- PageRank: https://www.geeksforgeeks.org/page-rank-algorithm-implementation/
- More about PageRank: https://pi.math.cornell.edu/~mec/Winter2009/RalucaRemus/Lecture3/lecture3.html
- BERT: https://blog.google/products/search/search-language-understanding-bert/
- Google ML Crash Course: https://developers.google.com/machine-learning/crash-course
- Reddit Community for ML: https://www.reddit.com/r/learnmachinelearning
- ML book: https://sebastianraschka.com/blog/2022/ml-pytorch-book.html
- ML notes(Stanford official): https://cs229.stanford.edu/notes2022fall/main_notes.pdf
Comments
No comments added yet.
Add your Comment