Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: binary tree

Two-forked tree, full binary tree, full binary tree

Definition Tree node (node): contains a data element and several branches pointing to the subtree;

Child node: node The root of the subtree of a point is called the child of the node;

P

October 17, 2021By Simo Mathematics binary tree, complete, full, Two-forkLeave a Comment

Judging whether the binary tree is mirror

?

? ?

From

}??

October 17, 2021By Simo Mathematics binary tree, image, judgment, whetherLeave a Comment

[Data Structure] Iterator realizes the order of the binary tree

Iterator

templatestruct __TreeIterator{ typedef BinTreeNode Node; typedef __TreeIterator Self; __TreeIterator() {} __TreeIterator(Node* node) :_node(node) {} Ref operator*() {assert( _node);

October 16, 2021By Simo Data Structure binary tree, Data Structure, ITERATION, middle, order, realization, traversLeave a Comment

[Data Structure] Non-recurable traversal binary tree

Because the recursion is achieved through the stack, although the recursive code sometimes looks simpler, then the recursion is too deep and it will be created p> Stack overflow. So we can achieve

October 16, 2021By Simo Data Structure binary tree, Data Structure, non-recursion, traversalLeave a Comment

[Data Structure] Recent public ancestors of any two nodes in the binary tree

Question request: Give two nodes in the binary tree arbitrarily, and find their nearest ancestor

There are three types Situation:

1. The binary tree is a search binary tree

If the

October 15, 2021By Simo Data Structure ancestors, arbitrary, binary tree, Data Structure, middle, nodes, recent public, twoLeave a Comment

[Data Structure] Creation and Traverse of Binary Trees

#include #include #include #include #define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 100 /* Initial allocation of storage space*/typedef int Status;typedef char TElemType; /*

October 15, 2021By Simo Data Structure binary tree, creation, Data Structure, traversalLeave a Comment

[Data Structure] Simple traversal and basic operation of binary tree

1, construction

2, copy construction

3, destruction

4. depth

5, Number of leaves

6. Pre-order traversal recursive non-recursive

7, Middle-order traversal recursi

October 15, 2021By Simo Data Structure Basic, binary tree, Data Structure, operation, simple, traversalLeave a Comment

[Data Structure] Traverse of the binary tree

/* * 1. Recursive and non-recursive implementation of preorder traversal* 2. Intermediate traversal Recursive and non-recursive implementations of * 3. Recursive and non-recursive implementations o

October 15, 2021By Simo Data Structure binary tree, Data Structure, traversalLeave a Comment

[Data Structure] Recursive Realization of Binary Tree

The concept of binary tree, I don’t want to talk about it here, but you need to know the basics of full binary tree, complete binary tree, etc.

Concept, enter the topic below.

First cre

October 15, 2021By Simo Data Structure binary tree, Data Structure, realization, recursionLeave a Comment

[Data Structure] During the secondary line of the binary tree, a iterator is realized to traverse the binary tree.

1. Create a node of the binary tree

#pragma once #include#includeusing namespace std;enum PointerTag{ THREND, LINK,};templatestruct BinaryTreeThdNode{ typedef BinaryTreeThdNode Node; BinaryTr

October 15, 2021By Simo Data Structure binary tree, chemical, clues, Data Structure, ITERATION, Medium, one, order, realization, traversalLeave a Comment

Posts navigation

Page 1 Page 2
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress