PTA class a simulated third bomb: 1140-1143

I feel like I'm redeeming the sin of not practicing the algorithm well in College for three years 😓 1. Summary of knowledge points The knowledge points involved in this operation include: string manipulationSTL + sortgraph theoryBST tree (time complexity) Title numberdifficultyKnowledge points1140🐸String and number conversion + English Re ...

Added by brotherhewd on Sun, 30 Jan 2022 13:17:04 +0200

BFS solving maze problem

Breadth first search definition Breadth first search, also known as breadth first search, is accessed layer by layer, which is similar to the hierarchical traversal of the tree. The vertices of the graph are many to many, and are accessed from near to far relative to the starting point until all nodes are accessed. BFS traversal process ...

Added by y.t. on Sun, 30 Jan 2022 09:47:25 +0200

Data structure - [ advanced level of graph ]

catalogue Directed graph Directed graph API design Realization of directed graph Topological sorting Topological sorting Detecting rings in directed graphs Vertex sorting based on depth first Directed graph Definition of directed graph and related termsDefinition: A directed graph is a directional graph, which is composed of a group o ...

Added by greencoin on Fri, 28 Jan 2022 03:51:52 +0200

Floyd algorithm finds the shortest path from all vertices to other vertices

1, What is Freudian algorithm? Floyd algorithm, also known as interpolation method, is an algorithm that uses the idea of dynamic programming to find the shortest path between multiple source points in a given weighted graph. It is similar to Dijkstra algorithm. The difference is that Dijkstra algorithm can only calculate the shortest pa ...

Added by anoopd on Thu, 27 Jan 2022 07:23:14 +0200

acwing week 6

An undirected connected graph consisting of n points and m edges is given. We want to turn it into a complete graph through a series of operations (that is, each pair of different vertices has exactly one edge connected). During each operation, you can select one of the points, find all the points directly connected to it, and connect the ed ...

Added by marian on Sat, 22 Jan 2022 04:46:18 +0200

[SDOI2009]Elaxia's route

[SDOI2009]Elaxia's route Title Description Recently, Elaxia and w * * have a very good relationship. They really want to be together all day, but their study in college is too tight. They must reasonably arrange their time together. Elaxia and w * * have to travel between the dormitory and the laboratory every day. They hope to walk together ...

Added by 448191 on Thu, 20 Jan 2022 00:07:27 +0200

Figure C + + implementation of template, BFS and DFS

chart There are two ways to store graphs: adjacency matrix and adjacency table. adjacency matrix A two-dimensional array is used to indicate whether there are edges between vertices and how much weight the edges are. For an undirected graph, the adjacency matrix is a symmetric matrix. The disadvantage is that although the adjacency matrix i ...

Added by tallberg on Sun, 16 Jan 2022 11:44:12 +0200

SDUT 2022 Winter Individual Contest - C(A,C)

Link: link. C - Crowd Control Meaning: given n n n points m m For an undirected graph with m edges, each edge has a capacity from the starting point ...

Added by deras on Sat, 15 Jan 2022 02:52:05 +0200

The third chapter of the basic algorithm series -- the shortest path problem in graph theory

There are five commonly used shortest path algorithms in graph theory. They are coming. All the villains are coming 💣 The enemy has five seconds to reach the battlefield~ 💓 On graph theory Graph theory has a long history, but graph theory is an important concern in both company interview and programming competition. Now there may b ...

Added by andrewcy on Thu, 13 Jan 2022 02:03:06 +0200

Codeforces round #758 (Div.1 + div.2) C ~ d problem solution

1608C - Game Master Title Description: Now there are n n n players are competing, of which No i i The ability values of i players in the two maps are ...

Added by b1011 on Sun, 09 Jan 2022 04:58:57 +0200