-
哈希表的设计
[问题描述]
真对你所在的集体(比如你所在的班级)中的人名设计一个哈希表,使得平均查找长度不超过R,完成相应的建表和查表的程序。...
哈希表的设计
[问题描述]
真对你所在的集体(比如你所在的班级)中的人名设计一个哈希表,使得平均查找长度不超过R,完成相应的建表和查表的程序。
[基本要求]
假设人名为中国人姓名的汉语拼音形式,待填入的哈希表的人名共有30个,取平均查找长度的上限为2。哈希函数用除留余数方法构造,用伪随机探测再散列处理冲突。
-Hash table design [description of the problem] really right in your collective (such as in your class) in the design of a hash table of names, bringing the average search length of less than R, the completion of construction of the corresponding tables and look-up table procedures. [Basic requirements] assumed the names of people known as the Chinese pinyin form, fill in the hash table to be a total of 30 names, taking the average search length of the upper limit of 2. Hash function with the addition of more than a few ways to stay construction, using pseudo-random probing re-hashing to resolve disputes.
- 2022-02-07 13:16:03下载
- 积分:1
-
人体轮廓矢量化
在对细化后的骨架进行矢量化时,首先从链码起始点开始,并以该点的方向为基准进行跟踪,一直到链码的方向发生改变为止,并取链码方向发生改变时的前一点作为拐点;然后再以此拐点为起始点, 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-06-13 20:28:18下载
- 积分:1
-
用于控制多个线程的问题
用于控制多个线程的问题-used to control the number of threads
- 2023-05-08 05:15:02下载
- 积分:1
-
java异常处理
3.8 异常处理
什么是异常
知道Java异常分类
处理异常的两种方式
throw和throws区别
如何创建自定义异常
概念:
在程序中,可能产生程序员没有预料到的各种错误情况,比如打开一个不存在的文件等,在Java中,这种在程序运行时可能出现的错误称为异常。
异常可以把“描述在正常执行过程中做什么事”的代码和“出了问题怎么办”的代码相分离
例子:demo05.ExceptionDemo.java
Java异常分类A:
java.lang.Error,java.lang.Exception
Error(错误):jvm系统内部错误、资源耗尽等严重问题,发生Error时,编程人员无能 为力,只能终止程序,例如内存溢出等。
Exception(异常):因编程错误或偶然的外在因素导致的一般性问题,例如:对负数 开平方根、空指针访问等,当发生Exception 时,编程人员可以做出处理,并做出人性 化响应,比如弹出窗口,显示“请不要输入负数!”。
异常分类B:
检查性异常:编译器必须处理的异常,该类异常通常是Exception类型或其子类(RuntimeException类除外)//运行时异常
SQLException、IOException、ClassNotFoundException
例子:/DemoProject/src/com/hyg/demo08/FileInputStreamDemo.java
非检查性异常:编译器不要求强制处理的异常,RuntimeException类及其所有子类都是非检查性异常。
NullPointerException、ClassCastException
例子:equa
- 2022-02-14 14:02:16下载
- 积分:1
-
Using vb development, access databases, realize the books to register and to bor...
用vb开发,access数据库,实现了图书登记,借阅查询;读者登记,会员查询等功能-Using vb development, access databases, realize the books to register and to borrow inquiries reader registration, membership inquiries and other functions
- 2022-07-21 06:37:18下载
- 积分:1
-
This program executes a very precise test to determining if the user input is a...
This program executes a very precise test to determining if the user input is a number.
- 2023-06-03 07:05:03下载
- 积分:1
-
在windows电脑上打开无限个计算器,使电脑崩溃
启动visual studio运行该程序后,会使电脑打开无限多个计算器,直到电脑崩溃!主要使用while语句,简单试用,新手入学,望大神多多指导!
- 2022-01-31 16:10:17下载
- 积分:1
-
根据进程的名字获取协议类型,端口,本地IP地址端口,远程IP地址和端口...
根据进程的名字获取协议类型,端口,本地IP地址端口,远程IP地址和端口-etPortFromProcessName
- 2023-08-22 16:55:04下载
- 积分:1
-
2440开发板pb4.2增加两个串口需更改的文件。
2440开发板pb4.2增加两个串口需更改的文件。-2440 Development Board pb4.2 two additional serial changes to the document required.
- 2022-09-13 22:15:03下载
- 积分:1
-
prepared by a local image pan and zoom procedures
VC++6.0编写的一个图像局部放大和缩小程序-prepared by a local image pan and zoom procedures
- 2023-01-31 14:50:04下载
- 积分:1