从键盘上输 入一串正整数, 最后输入-1作为输入结束的标志。如输入的序列为:2,5,7,23,48,96,……,-1。请以这些正整数的值作为二叉排序树中的结点的数据场之值,建立一棵二叉排序树。注意:请采用动态存储方法保存这棵二叉排序树,事先并未知道该二叉排序树中的结点的个数。
上传时间: 2017-04-21
上传用户:gonuiln
OTSU Gray-level image segmentation using Otsu s method. Iseg = OTSU(I,n) computes a segmented image (Iseg) containing n classes by means of Otsu s n-thresholding method (Otsu N, A Threshold Selection Method from Gray-Level Histograms, IEEE Trans. Syst. Man Cybern. 9:62-66 1979). Thresholds are computed to maximize a separability criterion of the resultant classes in gray levels. OTSU(I) is equivalent to OTSU(I,2). By default, n=2 and the corresponding Iseg is therefore a binary image. The pixel values for Iseg are [0 1] if n=2, [0 0.5 1] if n=3, [0 0.333 0.666 1] if n=4, ... [Iseg,sep] = OTSU(I,n) returns the value (sep) of the separability criterion within the range [0 1]. Zero is obtained only with images having less than n gray level, whereas one (optimal value) is obtained only with n-valued images.
标签: OTSU segmentation Gray-level segmented
上传时间: 2017-04-24
上传用户:yuzsu
采用中微半导体有限公司的66P23芯片,0.5-1-2-4累加定时,温度显示范围:0~60,设置范围:15~35……
上传时间: 2013-11-29
上传用户:远远ssad
//实验板的AVR程序,驱动1602LCM(可显示2行,每行16个字符)模块显示实验练习。 //说明:RS高显示/低指令输入 RW高读/低写 EN高读数据/下降沿写数据 //具体电路可参照使用指南里的说明。每个字符为5×7或5×8的点阵,共16×2个字符。 //使用器件:ATMEGA8535,可更换。 使用默认的片内RC振荡器,1MHz。 //接线定义:PD4,5,6 为RS,R/W,EA。数据位为PC口。 //使用的开关:SW2-1,2,3.SW1-1,2,3,4,5,6,7,8.SW2-5为背光开关。 SW3-8为系统复位端。
上传时间: 2014-12-01
上传用户:cmc_68289287
“ICD2 PIC仿真烧写器”是完全兼容Microchip的在线调试器MPLAB-ICD2的一个功能强大、低成本、高运行速度的开发工具。它利用Flash工艺芯片的程序区自读写功能,使用芯片来实现仿真调试功能。 “ICD2 PIC仿真烧写器”使用的软件平台是Microchip的MPLAB-IDE (集成开发环境软件包)或更高版本,兼容Windows 95/98/ME、Windows NT和 Windows 2000/Windows XP/Windows 2003等操作系统。 其通信接口方式为USB2.0高速接口(最高可达12Mbit/s);工作电压范围为2.0~5.5V。 可烧写大约270种芯片、仿真大约250种芯片、无限升级,微芯将不断更新MPLAB IDE 软件。 与MPLAB ICD2USB完全兼容,是PIC单片机初学者与专业设计人员的最佳选择。
标签: Microchip MPLAB-ICD Flash ICD2
上传时间: 2014-01-05
上传用户:zhuoying119
一款改造的J2me手机游戏项目,三国战纪游戏的源代码,游戏界面略显粗糙。不过游戏基本框架已经具备。一小部分功能没有实现。 项目源码可以在eclipse中直接运行。如果拿到wtk中测试的话,请修改源代码中的文件路径,譬如把\"/res\"去掉即可。 游戏名称:《三国战纪》手机版 游戏类型:横版过关 游戏支持屏幕:176*208 游戏支持需求:MIDP2.0,CLDC1.1 开发平台:J2ME+eclipse3.2+wtk2.5+jdk1.6
上传时间: 2017-06-03
上传用户:onewq
为了实现通讯录管理的几种操作功能,首先设计一个含有多个菜单的主控菜 单程序,然后再为这些菜单配上相应功能。 1、 主控菜单设计要求 (1) 菜单内容 程序运行后,给出6个菜单项的内容和输入提示: 1. 通讯录链表的建立 2. 通讯者结点的插入 3. 通讯者结点的查询 4. 通讯者结点的删除 5. 通讯录链表的输出 6. 退出管理系统 请选择0-5: (2) 设计要求 使用数字0-5来选择菜单项,其它输入不起作用。
上传时间: 2013-12-20
上传用户:fxf126@126.com
PGP SDK 包括大范围的标准加密、数字签名和编解码技术,以及各种网络安全协议执行程序。PGP SDK为开发人员提供同其他PGP产品核心相同的核加密功能。 PGP SDK技术说明:PGP SDK是我们的加密和密钥管理库的C接口,支持以下平台: · Windows 98, Millennium (ME), NT, 2000, and XP · Mac OS X · Linux x86 with 2.0.x kernel or later · Sun Solaris SPARC 2.5.1, 2.6, 2.7, or 2.8
上传时间: 2014-12-08
上传用户:四只眼
Implementation of Edmonds Karp algorithm that calculates maxFlow of graph. Input: For each test case, the first line contains the number of vertices (n) and the number of arcs (m). Then, there exist m lines, one for each arc (source vertex, ending vertex and arc weight, separated by a space). The nodes are numbered from 1 to n. The node 1 and node n should be in different sets. There are no more than 30 arcs and 15 nodes. The arc weights vary between 1 and 1 000 000. Output: The output is a single line for each case, with the corresponding minimum size cut. Example: Input: 7 11 1 2 3 1 4 3 2 3 4 3 1 3 3 4 1 3 5 2 4 6 6 4 5 2 5 2 1 5 7 1 6 7 9 Output: 5
标签: Implementation calculates algorithm Edmonds
上传时间: 2014-01-04
上传用户:kiklkook
(1)S2S1=00时,实现模3计数,触发器的状态一次0→1→2→0; (2)S2S1=01时,实现模5计数,触发器的状态一次0→1→2→3→4→0; (3) S2S1=10时,实现模7计数,触发器的状态一次0→1→2→3→4→5→6→0; (4) S2S1=11时,实现模7计数,触发器的状态一次0→1→2→3→4→5→6→7→0
标签: 00
上传时间: 2014-01-04
上传用户:kikye