Data structure course design North

Data structure course design North Version 3:12.13 modified Recently, Mr. Zhang (in fact, I'm not sure who did it, but I feel that Mr. Zhang has this level) gave me an interesting question. Many younger brothers and sisters came to ask me. In order to facilitate everyone in the province to ask me several times, I'll share my personal ideas wi ...

Added by xfluous on Mon, 13 Dec 2021 17:12:07 +0200

CF1610F F. Mashtali: a Space Oddysey

We first found the following properties: We might as well orient the edges randomly first, so we find that no matter how we flip the edges. Will cause \ (2 / 4 \) impact on the points at both ends, so we find that if the sum of all edge weights connected to a point is even, we can't adjust it as a good point. Then we naturally think about wheth ...

Added by ArneR on Fri, 26 Nov 2021 11:47:18 +0200

[Problem Solving Report] Active Thought Training 4 | CF Number Theory 2000+ | Top 6 Questions

Complement field, collect 2000+ questions of some missing math theories submitted in high numbers. A: SUM and REPLACE | CF 920F meaning of the title SUM and REPLACE | CF 920F Given length is n n Sequence of n ...

Added by alex.saidani on Fri, 12 Nov 2021 19:58:46 +0200

Graph algorithm - single source shortest path Dijkstra algorithm

Dijkstra algorithm Algorithm description: The graph is transformed into adjacency matrix. Before the current point is listed as the target, the element in the matrix is the distance from the current point to the target point. The distance from this point is 0, the distance from directly connected points is the corresponding distance, and t ...

Added by Mad_Mike on Mon, 01 Nov 2021 05:13:21 +0200

UVA1306 The K-League (maximum flow)

Problem surface have n n n teams compete, and each team needs to play the same number of games. Each game happens to be five wins for one team and five losses for the other. Give the number of games each team has won so far ...

Added by slapdashgrim on Sun, 31 Oct 2021 16:49:16 +0200

Strongly connected component -- cut point (cut top)

catalog: Introduction cut point         Cut point set          Cut point realization          1. Violence         2.Tarjan Introduction cut point:         Cut point set:       &nbsp ...

Added by hanhao on Sun, 24 Oct 2021 13:03:27 +0300

Algorithm [5] joint search of sets and graphs

And look up the set and map Joint search set There are several types of samples a, b, C and d, assuming V 2) In the parallel search set, each sample is considered to be in a separate set at the beginning 3) The user can call the following two methods at any time: Boolean issameset (VX, V, y): query whether sample x and sample y belong to ...

Added by kparker on Sat, 23 Oct 2021 06:31:45 +0300

Introduction to graph theory and implementation of depth first traversal and breadth first traversal

Introduction to graph theory Definition of graph Graph G =(V,E),V is a finite non empty set of vertices, and E is an edge set. V(G) and E(G) represent the vertex set and edge set of G, respectively. Where E(G) can be an empty set. If E(G) is a set of directed edges, then G is a directed graph, otherwise it is an undirected graph. < x, ...

Added by virtual_odin on Sat, 11 Sep 2021 22:34:20 +0300