Description: The palindrome recognizer bool checkpa (char arr []) or bool checkpa (char * cptr) reads "abcdd" in the main function, displays "it is not a palindrome", reads "abcba" and displays "it is a palindrome".

Plat: C/C++ | Size: 2KB | Downloads: 0

Description: The traversal of a graph means that all vertices in a graph are accessed once and only once, starting from any vertex in the graph. The traversal operation of the graph is similar to the traversal operation of the tree. The traversal of graphs is a basic operation of graphs. Other algorithms of graphs, such as solving the connectivity problem of graphs, topological ordering and finding critical paths, are based on the traversal algorithm.

Plat: C/C++ | Size: 311KB | Downloads: 0

Description: NOIP2001-2005 the more difficult topic

Plat: C/C++ | Size: 8KB | Downloads: 0

Description: NOIP2012 D1T2 D1T3 D2T3 C++ stl

Plat: C/C++ | Size: 5KB | Downloads: 0

Description: Stack program instances, examples of Wang Baoming's lectures

Plat: C/C++ | Size: 2KB | Downloads: 0

Description: A simple simulation program of a examination registration system with functions including search,insertion,edition,removal and counting of the examintion records, realized by C++.

Plat: C/C++ | Size: 6909KB | Downloads: 0

Description: Data structure electronic version pdf (Yan Weimin version) exercises

Plat: C/C++ | Size: 1058KB | Downloads: 0

Description: Using dynamic programming to solve the problem of finding change, with process analysis.

Plat: C/C++ | Size: 34KB | Downloads: 1

Description: Linked list, stack, two tree, search and other conventional data structures and algorithm version of C language.

Plat: C/C++ | Size: 1385KB | Downloads: 1

Description: Data structure is the way that computer stores and organizes data. Data structure is a set of data elements that have one or more specific relationships.

Plat: C/C++ | Size: 15129KB | Downloads: 0

Description: The Josephu problem is: set number 1, 2,... N individuals of N sit around, and the person whose agreed number is k (1 <= K <= n) counts from the beginning, and the person counting to m is listed. The next one counts from the beginning, and the person counting to m is listed again. By analogy, until all the people are listed, a sequence of queue numbers is produced.
Two way linked list solution

Plat: C/C++ | Size: 1KB | Downloads: 0

Description: Input the letter expression, set up the expression tree and evaluate the expression.

Plat: C/C++ | Size: 16454KB | Downloads: 0

Description: Shanghai Jiao Tong University, OnlineJudge 1216

Plat: C/C++ | Size: 214KB | Downloads: 0

Description: Using the data characteristics of two fork sorting, statistics the number of elements in the two fork sort tree.

Plat: C/C++ | Size: 1KB | Downloads: 0

Description: Application of data structure diagram

Plat: C/C++ | Size: 65KB | Downloads: 0

Description: 7-5 list weight (25 points)
Given a list of L with integer key values, you need to delete the key value nodes with absolute values. That is, for each key value K, only the first absolute value equal to K's node is preserved. At the same time, all deleted nodes must be saved on another list. For example, given L is 21 -15 -15 -7 15, you need to output the list 21 -15 -7 after de-duplication, as well as the deleted list-15 15.

Plat: C/C++ | Size: 9KB | Downloads: 0

Description: 7-4 Joseph rings (25 points)
N individuals are numbered in a circle order, and the number is reported in the order of 1, 2, 3... from the 1st. The number of the p-announcers withdraws from the circle, while the others start from 1, 2 and 3, and the number of the p-announcers withdraw from the circle, and so on. Please export the original ordinal number of each exit person in the order of exit.
Input format:
Input is only one line, including an integer N (1<=N<=3000) and an integer P (1<=p<=5000).
Output format:
The original serial number of each exit is output in the exit order. The data is separated by a space, but there is no space at the end of the line.
Input example:
A set of inputs is given here. For example:
73
Output example:
3627514

Plat: C/C++ | Size: 9KB | Downloads: 1

Description: 7-2 the establishment and traversal of the sequence table (30 points)
Read the n value and N integers, set up the sequence table and traverse the output.
Input format:
Read N and N integers.
Output format:
Output n integers separated by spaces (there is no space after the last number).
Input example:
A set of inputs is given here. For example:
Four
-3 102078
Output example:
The corresponding output is given here. For example:
-3 102078

Plat: C/C++ | Size: 9KB | Downloads: 1

Description: Algorithm design and data structure

Plat: C/C++ | Size: 248KB | Downloads: 5

Description: Data structure problems such as parking lot management, Cerf algorithm, etc.

Plat: C/C++ | Size: 746KB | Downloads: 0

Description: Implementation of greedy algorithm allocation for n jobs on m machines

Plat: C/C++ | Size: 310KB | Downloads: 0

Description: Learning data structure essential books, PDF version, direct reading

Plat: Delphi | Size: 7798KB | Downloads: 0

Description: A spanning tree of a connected graph with n nodes is a minimal connected subgraph of the original graph, which contains all the N nodes in the original graph and has the least edges to keep the graph connected.

Plat: C/C++ | Size: 194KB | Downloads: 0

Description: The key of KMP algorithm is to use the information after matching failure to minimize the number of matches between pattern string and main string in order to achieve fast matching.

Plat: C/C++ | Size: 176KB | Downloads: 0

Description: Q: How do I build the executable file?
A: If you are going to compile this code in the APP of Dec-C++, find the tool bar, click Execute->compile, the executable file with the same filename will be built. And the shortcut key F9 also will do.
Q: How do I run the executable file?
A: First find the file and open it.
Next, enter a positive integer N, and please no larger than 100, or the program will be quit.
Finally, input N lines. Each line contains two integers which are valued from -1 to N-1 according to a Binary Search Tree already known by you

Plat: C/C++ | Size: 45KB | Downloads: 0

Description: deque, a double-ended queue
A "deque" is a data structure consisting of a list of items, on which the following operations are possible:
* Push(X, D): Insert item X on the front end of deque D.
* Pop(D): Remove the front item from deque D and return it.
* Inject(X, D): Insert item X on the rear end of deque D.
* Eject(D): Remove the rear item from deque D and return it. Write routines to support the deque that takes O(1) time per operation.

Plat: C/C++ | Size: 1KB | Downloads: 0

Description: with command window, input a maze map, where '2' implies wall, '0' for road, 'S' for start, 'E' for end, output a file where '1' implies the right but not only road from start to end.

Plat: C/C++ | Size: 1029KB | Downloads: 0

Description: with command window, input a maze map, where '2' implies wall, '0' for road, 'S' for start, 'E' for end, output a file where '1' implies the right road from start to end.

Plat: C/C++ | Size: 1029KB | Downloads: 0

Description: with linux command window, input a file that describe a maze map, where number 2 implies wall and number 0 implies road , 'S' and 'E' mean start and end

Plat: C/C++ | Size: 1029KB | Downloads: 0

Description: Using linked list as data structure to establish library information management system.

Plat: C/C++ | Size: 214KB | Downloads: 0