ENع
الدرس 21 · Algorithms

Graph search: BFS and DFS

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

Maps, friend lists, web links and computer networks are all graphs: things joined to other things. Searching one means visiting every node you can reach, without going round in circles. Step through breadth-first search and depth-first search on the same 7-node graph, watch the queue and the stack that drive them, and see why only one of them finds shortest paths.

12 دقيقة12 خطوات5 أسئلةIntermediate
شكل 21 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.