当前位置: 首页 > news >正文

做商演任务的网站标书制作员有前途吗

做商演任务的网站,标书制作员有前途吗,网站站外链接,wordpress主题module破解版1 二叉搜索树 二叉搜索树#xff08;BST#xff0c;Binary Search Tree#xff09;又称二叉查找树或二叉排序树。 一棵二叉搜索树是以二叉树来组织的#xff0c;可以使用一个链表数据结构来表示#xff0c;其中每一个结点就是一个对象。 一般地#xff0c;除了key和位置… 1 二叉搜索树  二叉搜索树BSTBinary Search Tree又称二叉查找树或二叉排序树。 一棵二叉搜索树是以二叉树来组织的可以使用一个链表数据结构来表示其中每一个结点就是一个对象。 一般地除了key和位置数据之外每个结点还包含属性Left、Right和Parent分别指向结点的左、右子节点和父结点。 如果某个子结点或父结点不存在则相应属性的值为空null。 根结点是树中唯一父指针为null的结点。 叶子结点的孩子结点指针也为null。 2 节点数据定义 /// summary     /// 二叉树的节点类     /// /summary     public class BinaryNode     {         /// summary         /// 名称         /// /summary         public string Name { get; set; } ;         /// summary         /// 数据         /// /summary         public string Data { get; set; } ;         /// summary         /// 左节点         /// /summary         public BinaryNode Left { get; set; } null;         /// summary         /// 右节点         /// /summary         public BinaryNode Right { get; set; } null;         /// summary         /// 构造函数         /// /summary         public BinaryNode()         {         }         /// summary         /// 单数值构造函数         /// /summary         /// param named/param         public BinaryNode(string d)         {             Name d;             Data d;         }         public BinaryNode(int d)         {             Name d ;             Data d ;         }         /// summary         /// 构造函数         /// /summary         /// param namen/param         /// param named/param         public BinaryNode(string n, string d)         {             Name n;             Data d;         }         /// summary         /// 返回邻接的三元组数据         /// /summary         /// returns/returns         public string[] ToAdjacency()         {             string adj ;             if (Left ! null)             {                 adj Left.Name;             }             if (Right ! null)             {                 if (adj.Length 0) adj ,;                 adj Right.Name;             }             return new string[] { Name, Data, adj };         }         /// summary         /// 邻接表         /// /summary         /// returns/returns         public Liststring ToList()         {             return new Liststring(ToAdjacency());         } public int Key         {             get             {                 return Int32.Parse(Data);             }             set             {                 Data value.ToString();             }         }     }   /// summary/// 二叉树的节点类/// /summarypublic class BinaryNode{/// summary/// 名称/// /summarypublic string Name { get; set; } ;/// summary/// 数据/// /summarypublic string Data { get; set; } ;/// summary/// 左节点/// /summarypublic BinaryNode Left { get; set; } null;/// summary/// 右节点/// /summarypublic BinaryNode Right { get; set; } null;/// summary/// 构造函数/// /summarypublic BinaryNode(){}/// summary/// 单数值构造函数/// /summary/// param named/parampublic BinaryNode(string d){Name d;Data d;}public BinaryNode(int d){Name d ;Data d ;}/// summary/// 构造函数/// /summary/// param namen/param/// param named/parampublic BinaryNode(string n, string d){Name n;Data d;}/// summary/// 返回邻接的三元组数据/// /summary/// returns/returnspublic string[] ToAdjacency(){string adj ;if (Left ! null){adj Left.Name;}if (Right ! null){if (adj.Length 0) adj ,;adj Right.Name;}return new string[] { Name, Data, adj };}/// summary/// 邻接表/// /summary/// returns/returnspublic Liststring ToList(){return new Liststring(ToAdjacency());}public int Key{get{return Int32.Parse(Data);}set{Data value.ToString();}}}3 二叉树的节点插入与搜索与验证代码 using System; using System.Collections; using System.Collections.Generic; namespace Legalsoft.Truffer.Algorithm {     /// summary     /// BST(二叉搜索树的迭代方法)     /// /summary     public static partial class Algorithm_Gallery     {         public static BinaryNode Insert(BinaryNode node, int key)         {             if (node null)             {                 return new BinaryNode(key);             }             if (key node.Key)             {                 node.Left Insert(node.Left, key);             }             else if (key node.Key)             {                 node.Right Insert(node.Right, key);             }             return node;         } public static int BST_Find_Floor(BinaryNode root, int key)         {             BinaryNode curr root;             BinaryNode ans null;             while (curr ! null)             {                 if (curr.Key key)                 {                     ans curr;                     curr curr.Right;                 }                 else                 {                     curr curr.Left;                 }             }             if (ans ! null)             {                 return ans.Key;             }             return -1;         } public static int BST_Drive()         {             int N 25; BinaryNode root new BinaryNode(19);             Insert(root, 2);             Insert(root, 1);             Insert(root, 3);             Insert(root, 12);             Insert(root, 9);             Insert(root, 21);             Insert(root, 19);             Insert(root, 25); return BST_Find_Floor(root, N);         }     } }   POWER BY TRUFFER.CN BY 315SOFT.COM using System; using System.Collections; using System.Collections.Generic;namespace Legalsoft.Truffer.Algorithm {/// summary/// BST(二叉搜索树的迭代方法)/// /summarypublic static partial class Algorithm_Gallery{public static BinaryNode Insert(BinaryNode node, int key){if (node null){return new BinaryNode(key);}if (key node.Key){node.Left Insert(node.Left, key);}else if (key node.Key){node.Right Insert(node.Right, key);}return node;}public static int BST_Find_Floor(BinaryNode root, int key){BinaryNode curr root;BinaryNode ans null;while (curr ! null){if (curr.Key key){ans curr;curr curr.Right;}else{curr curr.Left;}}if (ans ! null){return ans.Key;}return -1;}public static int BST_Drive(){int N 25;BinaryNode root new BinaryNode(19);Insert(root, 2);Insert(root, 1);Insert(root, 3);Insert(root, 12);Insert(root, 9);Insert(root, 21);Insert(root, 19);Insert(root, 25);return BST_Find_Floor(root, N);}} }
http://www.pierceye.com/news/687559/

相关文章:

  • 网站平台如何推广wordpress登录页面显示ip
  • 如何做网站百度排名优化推广的目的是什么
  • 重庆忠县网站建设公司哪家专业芷江建设局的工作人员网站
  • 戴尔电脑网站建设方案范文室内设计方案图
  • 餐厅网站建设策划方案网站建设存在的具体问题
  • 竞价页面网站做优化广告商对接平台
  • 网站后台如何修改密码wordpress调整页面布局
  • 东莞热点网站建设莱州人才网
  • 线上渠道推广网站的优化哪个好
  • 群晖可以做网站服务器微信朋友圈怎么发链接那种网页怎么制作
  • wordpress 公司网站网站和公众号的区别
  • 数据库跟网站seo流程
  • 网站首页关键词设置网站的整体风格
  • wordpress源码站整站源码制作wordpress插件
  • 海口网站建设就q479185700上墙网站空间后台怎么进入
  • 四川电子有限公司 - 手机网站如何做网站家具导购
  • 网站经营性备案修改wordpress自带小工具
  • 网站怎么建设可以发图评论网站建设制作公
  • 做销售的网站设计公司是做什么的
  • 建设专业网站的利弊海淀区seo招聘信息
  • 吴江区住房与建设局网站网站开发怎么对接客户
  • frontpage2007网站建设网站开发需要redis
  • 国内做网站多少钱ui中有哪些做的好看的网站
  • 金湖建设工程质量监督网站网页设计 网站建设 哪个好
  • 适合做外链的网站梧州论坛红豆思辨
  • 永城网站设计公司wordpress 获取父分类
  • 网站开发语言是什么东莞营销网站建设价格
  • 外贸公司访问国外网站中学生做的网站有哪些方面
  • 南城网站建设公司信息wordpress怎样显示文章全部列表
  • 做推广什么网站便宜企业网站管理系统湖南岚鸿