@_coffeebits_: DFS vs BFS: Which Algorithm is Faster? (Maze Visualization) A visual comparison of two fundamental graph traversal algorithms: DFS (Depth-First Search) and BFS (Breadth-First Search). See how Stack and Queue data structures change the pathfinding strategy in a maze. #it #computerscience #algorithms #Tech #dfs #bfs #coding #techtok #fyp #viral #softwareengineer

CoffeeBits
CoffeeBits
Open In TikTok:
Region: PL
Thursday 19 February 2026 14:23:32 GMT
186005
4055
100
82

Music

Download

Comments

vertexcubed
Vivi <3 :
"DFS wins" in speed sure, it's not the shortest path though. this comparison is silly these algorithms serve entirely different purposes.
2026-03-15 00:33:33
726
jethi_
Jethro :
bogo search could do this 1st try
2026-02-19 22:09:01
609
marktumilty4
marktumilty4 :
BFS found the fastest path. DFS did not.
2026-02-19 18:17:32
891
meylo.wip
meylo :
Bfs finds the shortest path guaranteed tho. Dfs might be quicker here but doesn't 100% give you the shortest path.
2026-02-21 16:20:44
30
esve232
esve232 :
2026-02-20 19:20:40
54
chromegism
chromegism 📼👁 :
what about A*, that will find the shortest path in less time than DFS
2026-02-19 18:36:04
9
bluminal
Blumin :
bogo search solos
2026-03-17 15:50:12
26
cyborghydraxd
Jamie Dudley435 :
which DFS algorithm is this? pre, in or post order? (I'm learning a level cs and I'm interested as we just covered this
2026-03-11 18:57:13
1
oliverlundevall
me :
What if the goal is not on the other side? Can you run this simulation multiple times with random spawn points for the start and finish?
2026-02-20 14:15:18
4
abc939.dc
ABC939 :
In any scenario bfs is going to be slower as long as the goal is at the opposite side of map
2026-02-20 00:32:57
16
novafluffyguyy
NovaΔ :
what about quantum search
2026-02-20 07:18:02
5
actualjackie
Jackie B :
BFS is criminally underrated. Many times the answer isn't buried deep down. This isn't about mazes necessarily.
2026-03-15 04:17:45
9
aresval2
Ares Val :
happy wheels mentioned
2026-02-20 13:35:06
9
gliderfire
GliderFire :
happy wheels🔥
2026-02-22 17:55:48
12
apple_ilevx
#1 filet-o-fish enjoyer :
what about both
2026-02-22 08:27:47
0
oarstead
Oarstead :
BFS would be better for more targets probably
2026-03-17 01:19:12
1
yatabvrv866
Ymom :
DFS нашел путь BFS нашел кратчайший путь
2026-03-15 04:37:19
147
1017alyx.9sm
райзен #шеф :
у bfs больше шанса на успех
2026-03-15 08:20:06
1
elias111117
Neymar10 :
I would find it way faster
2026-03-18 21:23:05
1
xknxwnnn
name man 🇵🇸🇪🇬 :
what's the worst case time complexity for these?
2026-03-14 19:24:16
2
pineapplefuker
forever. :
faster but not better
2026-03-20 13:06:45
1
elle.mack.wednesday
Elisabeth :
You intentionally engineered a situation in which a DFS would win every time by making the goal point as deep of a point possible.
2026-03-15 15:17:01
1
random_user_489
randomuser6969420 :
2026-02-20 12:55:19
1
k_dizzy_420
KDizzy :
that victory noise woke me up like a sleeper agent 😭
2026-03-15 13:14:03
1
To see more videos from user @_coffeebits_, please go to the Tikwm homepage.

Other Videos


About