Tag

DFS

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
May 31, 2023 · Fundamentals

Graph Theory Basics: Concepts, Storage, and Traversal (DFS & BFS)

This article introduces the basic concepts of graphs, including vertices, edges, directed and undirected types, explains common storage methods such as adjacency matrices and adjacency lists with examples, and demonstrates graph traversal techniques like depth‑first and breadth‑first search using Java code.

BFSDFSJava
0 likes · 6 min read
Graph Theory Basics: Concepts, Storage, and Traversal (DFS & BFS)
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 20, 2021 · Fundamentals

Understanding Full Permutations and Backtracking in Java

This article explains the concept of full permutations, presents a classic interview problem requiring all permutations of a distinct integer array, and walks through a backtracking solution in Java with detailed step‑by‑step analysis and code examples.

DFSJavaalgorithm
0 likes · 6 min read
Understanding Full Permutations and Backtracking in Java