Java implementation uses Floyd algorithm to solve the shortest path problem
14.9 Freudian algorithm
14.9.1 introduction to Floyd algorithm
Like Dijkstra algorithm, Floyd algorithm is also an algorithm for finding the shortest path between vertices in a given weighted graph. The algorithm is named after Robert Freud, one of the founders, the winner of the Turing prize in 1978 and professor of computer science at Stanf ...
Posted by auamy on Tue, 12 Oct 2021 17:44:37 -0700
Operating system experiment -- paging storage management
2, Paging memory management
catalogue
2.1 purpose
2.2 contents
2.3 experimental tips
2.4 data structure
2.5 algorithm design and flow chart
2.6 operation screenshot
2.7 summary
2.8 code
2.1 purpose
Master the basic principle of paging management, and reflect the process of memory space allocation, recovery and address convers ...
Posted by neuroxik on Tue, 12 Oct 2021 15:39:21 -0700
Day3 - print binary tree from top to bottom
Title Description
Sword finger offer 32 prints a binary tree from top to bottom
Each node of the binary tree is printed from top to bottom, and the nodes of the same layer are printed from left to right.The binary tree is printed by layers from top to bottom, the nodes of the same layer are printed from left to right, and each layer i ...
Posted by kamasheto on Tue, 12 Oct 2021 12:29:24 -0700
Depth first traversal (dfs) and breadth first traversal (bfs) of Java construction graphs and graphs
13.1 basic introduction
13.1.1 why is there a diagram
We learned linear tables and trees earlierThe linear table is limited to the relationship between a direct precursor and a direct successorThe tree can only have one direct precursor, that is, the parent nodeWhen we need to represent many to many relationships, we use graphs here
13.1.2 i ...
Posted by misty on Mon, 11 Oct 2021 21:23:07 -0700
[key and difficult points] [data structure 01] binary sort tree and balanced binary tree
[key and difficult points] [data structure 01] binary sort tree and balanced binary tree
1, Binary sort tree
1. Introduction
Binary Sort Tree (BST), for any non leaf node of the Binary Sort Tree, the value of the left child node is required to be smaller than that of the current node, and the value of the right child node is required to ...
Posted by doublebassdanny on Mon, 11 Oct 2021 17:31:27 -0700
Summary of Data Structure Code Title ---- (Feel good and support it)
Summary of Data Structure Code Title
Title 01
A cyclic single-chain list with leading nodes whose node values are positive integers is designed. An algorithm is designed to repeatedly find the node with the lowest node value in the single-chain list and output it. Then the point is deleted from the single-chain list until the single-chain tab ...
Posted by cyberrate on Mon, 11 Oct 2021 09:56:48 -0700
Java solves the eight queens problem
Video link: Han Ping's Java data structure and algorithm -- 8 Queen Problem
Eight emperors and empress N
VIII. Introduction to questions:
The eight queens problem is an ancient and famous problem and a typical case of backtracking algorithm. The problem was put forward by international chess player Max Bethel in 1848: in August × E ...
Posted by raffael3d on Sun, 10 Oct 2021 19:56:38 -0700
[data structure] sort - eight sorts
preface
In learning data structures, we often come into contact with the term sorting, but when we learn, we may be at a loss when facing the code directly. Why do the interface use these parameters and why do we exchange them back and forth... We don't know what the authors think when implementing these interfaces, In this blog, I wil ...
Posted by kailien on Sun, 10 Oct 2021 10:33:03 -0700
[Algorithm-LeetCode] 110.Balanced Binary Tree (Recursive)
110.Balanced Binary Tree-Force Button (LeetCode)
Release: October 10, 2021 21:30:53
Problem description and examples
Given a binary tree, determine whether it is a highly balanced binary tree. In this topic, a height-balanced binary tree is defined as: The absolute difference between the left and right subtrees of each node of a binary tr ...
Posted by lox on Sun, 10 Oct 2021 10:19:23 -0700
PTA linked list de duplication
56 line less than AC
Idea: (look here! Look here! [original] it is troublesome to delete duplicate elements (move them to another array at the same time) and change the address of the data behind the original table. It is troublesome and time complexity is high. [now] one key point is that the next address of the data is not required.
Change ...
Posted by sangamon on Sun, 10 Oct 2021 04:57:23 -0700