Uninformed search algorithms are blind search strategies that explore state spaces without prior knowledge of the goal's location, including Breadth-First Search (BFS) which explores layer by layer using a queue and guarantees shortest path when edge costs are equal, Depth-First Search (DFS) which explores deeply before going wide using a stack and uses less memory but doesn't guarantee shortest path, and Uniform Cost Search (UCS) which handles weighted edges using a priority queue and always finds the minimal cost solution as an optimal algorithm.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Uninformed Search Algorithms Explained in 2 Minutes!Added:
How exactly does a computer go about finding the shortest path for a graph when it doesn't have any prior information beforehand about where it's going? Well, there's an approach for this called uninformed search, and there are three specific algorithms within that, and they each think very differently. The first algorithm is called breadth-first search, or BFS.
Breadth-first search explores [music] the graph layer by layer. You start at the root, you visit all the neighbor nodes, and then the next layer of neighbors, and so on. It uses a data structure called a queue, which operates on the first-in and first-out concept.
This first step is to add the start node. The second is that you pop the front node of the queue, and then mark it as visited, and then you add all the unvisited neighbor nodes. And step three is to repeat the two previous steps. BFS is designed to guarantee the shortest path, but only when all of the costs of the edges within that path are the same.
The second approach is called depth-first search, or DFS. [music] Depth-first search goes deep before going wide, which means that you pick a path and follow it until the end in the graph. It uses a data structure called a stack, which is a recursive method. So, step one is to push the start node that you're working with, then you pop the top of the node from the stack, push the unvisited neighbors of the current node, and number three is to backtrack when you get stuck. Depth-first search is a method that uses less memory than breadth-first search, but it won't always find the shortest path. That leads to approach number three, uniform cost search, or UCS. UCS handles weighted edges, and it always expands with the cheapest path first. It uses a data structure called a priority queue, which is sorted by the cumulative cost of the path. [music] Step one is to add the step with cost zero, or the start of it. Step two is to pop the lowest [music] cost node, and the third one is to add the neighbors with their total path cost, and finally repeat until you reach your end goal state. UCS is an optimal algorithm, as it always finds the minimal cost solution. So, to recap it all, BFS is for the shortest hops, DFS is for the deepest dive, and BFS and UCS are optimal and complete, with [music] UCS delivering the lowest cost possible. There are three strategies for uninformed search if you have zero knowledge of the goal and that's what [music] makes them uninformed. I'm making more videos like these in this search algorithm series. If you like [music] to be sure to also comment, subscribe, and share your thoughts down below. I'll see you in the next one.
Related Videos
3D Basics in C
HirschDaniel
2K views•2026-06-05
Re: 🗣️📍theprophedu📍2026 GST 103 CLASS (E-EXAM REVISION)
theprophedu
636 views•2026-06-04
Making Minecraft Clone with C++ & Raylib
PecaCSLive
686 views•2026-06-04
Search Algorithms Explained in 60 Seconds! 🤖💨
samarthtuliofficial
218 views•2026-06-01
Instagram accounts got PWNed
EricParker
13K views•2026-06-03
So What's Odin Lang Even Good For
TechOverTea
131 views•2026-06-01
🚀 BCS613C Compiler Design | Module 1 to 5 Schema Evaluation 🔥 | VTU 6th Sem 💯 #VTU #bcs613c #exam
Pranavaa-y4y
104 views•2026-06-02
Beyond Components: Designing Generative UI for MCP Apps — Ruben Casas, Postman
aiDotEngineer
1K views•2026-06-03
Trending
This spider is a VAMPIRE (Kinda...)
moreparz
2764K views•2026-06-02
Take Down Notification: Reckless Ben’s Patreon Account
JackConteExtras
1479K views•2026-06-02
Making Ai Choose Where I Eat
Tyrecordslol
3080K views•2026-06-03
Can AI tell what accent I’m using?? #carterpcs #tech #ai #chatgpt
actuallycarterpcs
2732K views•2026-06-01











