ND_'s blog

By ND_, 5 years ago, In English

Hello Codeforces!!

In this blog, I have categorized almost all CSES graph problems according to their topics. If you are a beginner and want to learn graph, below is the list of topics you can learn and problems that you can solve topic wise.

• DFS/BFS traversals

Topics

○ Cycle detection in directed graph using DFS and topological sorting.
○ Cycle detection in undirected graph using DFS. ○ Bipartite checking. ○ Shortest path in unweighted graph.

Problems

○ Counting Rooms ○ Labyrinth ○ Building Roads ○ Message Routes ○ Building Teams ○ Round Trip ○ Monsters ○ Round Trip 2

• Optimal Path algorithms

Topics

○ Dijkstras algo ○ Bellman Ford algo + Detect Negetive Cycle ○ Floyd Warshall algo. ○ Shortest Path in DAG using topological sorting

Problems

○ Shortest Routes 1 ○ Shortest Routes 2 ○ High Score ○ Flight Discount ○ Cycle Finding ○ Flight Routes

• Minimum spanning trees

Topics

○ Prims algo ○ Krushkals algo using DSU

Problems

○ Road Repairation ○ Road Construction (DSU Only)

• Directed Graphs(Graph DP)

Topics

○ Topological sorting ○ Graph Dp(How many paths, shortest and longest paths etc)

Problems

○ Course Schedule ○ Longest Flight Route ○ Game Routes ○ Investigation

• Functional Graphs

Topics

○ Finding cycles node and length. ○ Finding distance between nodes

Problems

○ Planet Queries ( LCA ) ○ Planet Queries 2 ○ Planet Cycles ○ Secret Santa

• Strongly Connected Components

Topics

○ Kosarajus algo. ○ 2-SAT

Problems

○ Flight Route Check ○ Planets And kingdoms ○ Coin Collector ○ Giant Pizza

• Eulerian Path and Circuit

Topics

○ Hierholzer's algorithm

Problems

○ Mail Delivery (Circuit) ○ Teleporters Path (Path)

Full text and comments »

  • Vote: I like it
  • +14
  • Vote: I do not like it

By ND_, history, 5 years ago, In English

Hello, Codeforces!!

These are some standard digit DP problems with their solution from which a beginner can start.

1)GONE(Spoj) Problem link : Gone. Solution link : Gone

2) Digit Sum(Spoj) Problem link : Digit Sum. Solution link : Digit Sum

3) Investigation(LightOJ) Problem link : Investigation. Solution link : Investigation

4)Palindromic Numbers(LightOJ) Problem link : Palindromic Numbers. Solution link : Palindromic Numbers

5) Counting Numbers(CSES) Problem link : Counting Numbers. Solution link : Counting Numbers

Full text and comments »

  • Vote: I like it
  • +15
  • Vote: I do not like it