wcy-dt / seu-cybersecurity-courses Goto Github PK
View Code? Open in Web Editor NEW东南大学网络空间安全学院学习资料整理。包含课件、笔记、试卷、作业等。
License: MIT License
东南大学网络空间安全学院学习资料整理。包含课件、笔记、试卷、作业等。
License: MIT License
线索二叉树(Threaded Binary Tree)定义为:一个二叉树通过如下的方法“穿起来”:所有应该为空的右孩子指针指向该结点在中序序列中的后继,所有应该为空的左孩子指针指向该结点的中序序列的前驱。那么在有
二叉树虽然是非线性结构,但二叉树的遍历却为二又树的结点集导出了一个线性序列。希望很快找到某一结点的前驱或后继,但不希望每次都要对二叉树遍历一遍,这就需要把每个结点的前驱和后继信息记录下来。为了做到这一点,可在原来的二叉链表中增加一个前驱指针域pre
和一个后继指针域suc
,分别指向该结点在某种次序下的前驱结点和后继结点。以中序遍历为例:
有许多指针是空指针又没有利用。为了不浪费存储空间,利用空的lchild
域存放结点的前驱结点指针,利用空的rchild
域存放结点的后继结点指针。为了区别线索和子女指针,在每个结点中设置两个标志ltag
和rtag
。以中序线索二叉树为例,如果ltag==0
,标明lchild
域中存放的是指向左子女结点的指针,否则lchild
域中是指向该结点中序下的前驱的线索;如果rtag==0
,标明rchild
域中存放的是指向右子女结点的指针,否则rchild
域中是指向该结点中序下的后继的线索。由于它们只需占用一个二进位,每个结点所需存储空间节省得多。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.