Stack of data structures
Stack
Introduction of stack
(1) Introduction of stack (2) Introduction to stack
Stack (stack)A stack is an ordered list of Filo first in last out.Stack is a special linear table that restricts the insertion and deletion of elements in a linear table to the same end of the linear table. The end that allows insertion and deletion is the c ...
Posted by nelustr on Sat, 16 Oct 2021 21:53:48 -0700
Initial order of data structure: algorithm complexity
Algorithm complexity
Complexity concept
The running time of the program needs to consume certain time resources and space (memory) resources. Therefore, the quality of an algorithm is generally measured from the two dimensions of time and space, namely time complexity and space complexity.
Time complexity mainly measures the running ...
Posted by robvan75 on Sat, 16 Oct 2021 12:04:47 -0700
In place heap sorting
Experimental ReportLab
1, Experiment Name: in place heat sorting
2, Purpose of the experiment:
Master the data structure of the largest heap and the characteristics of the structure;It can realize the basic operations of maximum heap, such as construction, insertion, deletion, initialization, memory recovery, etcHeap sorting using maximum he ...
Posted by PJSheltrum on Fri, 15 Oct 2021 23:10:31 -0700
Single linked list C + + version of data structure
Single linked list C + + version of data structure
There is an STL list in C + +. The bottom layer is a two-way linked list. Here, a single linked list is written to play.
Included header file
#include <iostream>
Nothing else. If you want to be more rigorous, add a new header file
#include <new>
Structure description lin ...
Posted by bhavik_thegame on Fri, 15 Oct 2021 20:54:59 -0700
Explain priority queue (heap)
catalogue
1, The concept of heap and the creation of heap
1. Concept of heap
2. Heap creation
2, Construction of heap method
2.1 queue entry
2.2 out of queue operation
2.3 viewing header elements
3, Use of priority queue (heap) method
3.1 heap initialization (creation of large heap and small heap)
4, Heap sort (heap)
5, Find and mi ...
Posted by r_a_s_robin on Fri, 15 Oct 2021 19:08:00 -0700
[CCO 2019]Sirtet - parallel heap + lazy mark acceleration simulation
[CCO 2019]Sirtet
preface
I don't understand. This problem is completely done according to the idea of simulation. Why does someone say that its essence is Dijkstra with differential constraints? The essence of Dijkstra is to do simulation, right?
Problem solution
First, consider how to simulate violence. The normal idea should be to let all ...
Posted by argoSquirrel on Fri, 15 Oct 2021 17:24:27 -0700
The imperial tycoon with a value of more than 100 million said to the small farmer, has the sequence table been met
Lucky to be appreciated by the rich, how can the sequence table not be
Sequence table
Linear table
A linear list is a finite sequence of n data elements with the same characteristics. Linear table is a data structure widely used in practice. Common linear tables: sequential table, linked list, stack, queue, string
A linear table is logi ...
Posted by azul85 on Fri, 15 Oct 2021 16:18:52 -0700
Data structure - red black tree
1. What is red black tree?
The red black tree is first a self balanced binary search tree. The height difference between the left and right subtrees may be greater than 1, so the red black tree is not strictly balanced binary tree (AVL), but the cost of balancing it is low, and its average statistical performance is better than AVL. It has the ...
Posted by sirTemplar on Fri, 15 Oct 2021 14:31:28 -0700
Time complexity and space complexity (data structure implemented in C language)
preface
Woo woo woo, the C language blog has been delayed for too long and has lost itself; Now I have to learn data structure again. If you have time to write a blog in C language! The data structure must be constantly! Well, sure, come on, Ollie!!!!!!
1, Data structure Preface
1. What is ...
Posted by nelsok on Fri, 15 Oct 2021 13:22:21 -0700
2021-10-13 I. array and queue
1. Sparse array
1.1 what is a sparse array
Sparse array, first of all, remove the sparse array. It is understood that you, who write the program, have thinning and less hair.For example, a chess board can be represented by a binary array. For this chess card (there are only three kinds of data, 0 means no chess pieces, 1 means black chess ...
Posted by gabeanderson on Fri, 15 Oct 2021 12:25:46 -0700