Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Written by Prashant Basnet
<section class="bg-white dark:bg-gray-900 px-4 py-8 max-w-2xl mx-auto text-gray-800 dark:text-gray-200">
<h1 class="text-2xl sm:text-3xl font-signature italic font-semibold text-center mb-4">
👋 Welcome — You’ve Landed on My Signature Page
</h1>
<p class="text-base sm:text-lg mb-4">
Hey, I’m <strong class="text-black dark:text-white">Prashant Basnet</strong> — software developmemt engineer at
<a href="https://unisala.com" class="text-indigo-600 dark:text-indigo-400 underline hover:no-underline" target="_blank" rel="noopener noreferrer">
Unisala.com
</a>.
</p>
<p class="text-base sm:text-lg mb-6">
You’re viewing my <strong>Signature</strong>, a digital space where I share what I’m learning, building, and reflecting on, all in one place.
</p>
<div class="border-l-4 border-indigo-400 dark:border-indigo-500 pl-4 italic mb-6 text-sm sm:text-base text-gray-700 dark:text-gray-400">
📍 Found this page via LinkedIn, my personal site, or a shared link?
<br />
This isn’t a traditional portfolio. It’s my public digital notebook where I document useful ideas, experiments, and lessons I’ve learned as I build.
</div>
<h2 class="text-lg font-semibold mb-2">What You’ll Find Here:</h2>
<ul class="list-disc list-inside space-y-1 text-sm sm:text-base">
<li>✍️ Thoughts on algorithms, systems, and software design</li>
<li>🧠 Insights from building at Unisala</li>
<li>🔗 Direct links to everything I’ve published on Unisala</li>
</ul>
</section>
Greedy algorithm only applies to the optimization problem.
This is how the greedy algorithm works:
But the greedy algorithm does not work all the time for example:
If we take the concept of the greedy algorithm and figure out how to utilize in a way that cover the weakness of this algorithm, it turns into Dijkstra's algorithm
Here how we approach Dijkstra algorithm:
if we are looking for the shortest path, then there are two optimal algorithms that we automatically know are proabably going to be the correct way to appraoch the problem
################## Point to be noted #############################
When you see a directed weighted graph and you are looking for the shortest path to all the nodes from any specific node,
you want to use these two algorithms that we are going to learn.
Dijkstra Algorithm:
-------------------
Dijkstra algo can only be applied to graphs that are directed and weighted.
It aims to help you figure out, what is the shortest distance between some node of your choice to every other node
Greedy method is an algorithmic paradigm, meaning it's a way that we tackle problems that is very simple. it only applies when we are working with optimization problem
Greedy Algorithm :
We are hiking on a trail, we come to a form , left which take 4 hrs and right which take 1 hour.
Greedy algorithms are commonly used for optimization problems like:
Activity Scheduling:
Fractional Knapsack:
Coin Change:
Example keywords: