20162314 Experiment 1: Linear structure - experiment report.
Experiment report of Besti
course:《Program Design & Data Structures》
Class: 1623
Student Name: Wang, Yixiao
Student Number:20162314
Tutor:Mr.Lou、Mr.Wang
Experiment date:2017.9.26
Secret level: Unsecretive
Experiment time:60 minutes
Major/Elective:Major
Experiment order:5
Experiment content
- Linear-list test of Java :Process, Problem.
- Linear-list application of Java :Process, Problem.
- Implement ArrayList(Pseudocode, Productcode, Testcode): Process(Analysis, Design,implement,test),Problem.
- Implement LinkedList (Pseudocode, Productcode, Testcode): Process(Analysis, Design,implement,test),Problem.
- Analyze source code of ArrayList and LinkedList:Process,Skill.
Experiment situation
Exp1 Linear-list test of Java
- It's easy to finish this experiment.
- To start with , import to form a new Linked-list to start the experiment.
- Next , use the method list.add() to ealuation.
- Then , use the for-loop to test the Linked-list.add method respectively.
- Last , export the value of three loops respectively.
Exp2 Linear-list application of Java
- To start with , set a class by using List to creat alist and blist, make the two lists' size equally.
- Next , use the sentence while-if, value alist(i) and blist(j)
- If the alist(i) > blist(j) , then merge the first place with index i+j by bList.get(j)
- Else , take the opposite.
- Then , when the length of alist > i , merge the list with index i+j by alist.get(i)
- while the length of blist > j , do the opposite
- After the loops end , return the result of merging lists.
- Last , write a test with valuing two arraylists by using list.add() and print the result.
Exp3 Implement ArrayList
- To start with , import to form a new Array-list to start the experiment.
- Next , write the index and the first element
- Next , use the method list.add to make the array list.
- Then , output and explain the fist element.
- Then , use the method list.remove to remove a number.
- Next , use the method list.contain to check whether the number is in list right now.
- Then , use the for-loop and leam.iterator to print iter.next() .
- Next , form a new String Array to print string.
- Then , use the list.clear to clear the list number.
- Last , use the method list.isEmpty to check whether the list is empty now.
Exp4 Implement LinkedList
- The whole test is made of three methods:testLinkedListAPIs(),useLinkedListAsLIFO();,useLinkedListAsFIFO();
- Then creat a class to explain this three methods.
- import a new linkedlist
- Next, use list.add to print
- Then, use stack to pop and peek.
- Next, creat a new queue
- Use the method to add and remove ,last print.
Exp5 Analyze source code of ArrayList and LinkedList
>.
Assume when we creat a Linkedlist at the start, there is only a hearder point,as the following picture.
There is a elementA1 insert ahead the header.
Now,insert a element A2 after implementing the code as the following
Entry newEntry = new Entry(A2, header, header.previous);
//Make newEntry.next point to the header, new Entry point to header.previous(A1)
newEntry.previous.next = newEntry;
newEntry.next.previous = newEntry;
Then, the picture turn to this
Code hosting
PSP5.1(Personal Software Process)
| Steps | Time | percent |
|---|---|---|
| requirement | 45minutes | 16.7% |
| design | 50minutes | 18.5% |
| coding | 1.5hours | 32.2% |
| test | 30minutes | 11.1% |
| summary | 55minutes | 19.2% |
20162314 Experiment 1: Linear structure - experiment report.的更多相关文章
- PCA tries to preserve linear structure, MDS tries to preserve global geometry, and t-SNE tries to preserve topology (neighborhood structure)
https://colah.github.io/posts/2014-10-Visualizing-MNIST/
- 20162314 Experiment 2 - Tree
Experiment report of Besti course:<Program Design & Data Structures> Class: 1623 Student N ...
- 20162314 Experiment 4 - Graph
Experiment report of Besti course:<Program Design & Data Structures> Class: 1623 Student N ...
- 20162314 Experiment 3 - Sorting and Searching
Experiment report of Besti course:<Program Design & Data Structures> Class: 1623 Student N ...
- 20162314 《Program Design & Data Structures》Learning Summary Of The Eighth Week
20162314 2017-2018-1 <Program Design & Data Structures>Learning Summary Of The Eighth Week ...
- cvpr2015papers
@http://www-cs-faculty.stanford.edu/people/karpathy/cvpr2015papers/ CVPR 2015 papers (in nicer forma ...
- N-Gram
N-Gram是大词汇连续语音识别中常用的一种语言模型,对中文而言,我们称之为汉语语言模型(CLM, Chinese Language Model). 中文名 汉语语言模型 外文名 N-Gram 定 ...
- IoT experitment
Abstract: In order to solve the problems of complex experiment management, complicated teaching task ...
- 论文翻译:2021_Towards model compression for deep learning based speech enhancement
论文地址:面向基于深度学习的语音增强模型压缩 论文代码:没开源,鼓励大家去向作者要呀,作者是中国人,在语音增强领域 深耕多年 引用格式:Tan K, Wang D L. Towards model c ...
随机推荐
- boost::bind 学习
最近学习了太多与MacOS与Iphone相关的东西,因为不会有太多人有兴趣,学习的平台又是MacOS,不太喜欢MacOS下的输入法,所以写下来的东西少了很多. 等我学习的东西慢慢的与平台无关的时 ...
- HDFS源码文件过大,IDEA打开失败解决方法
问题现象:hadoop 3.1.0源码文件ClientNamenodeProtocolProtos大小4M+,IDEA打开时加载失败,ClientNamenodeProtocolPB报错找不到类. - ...
- Qt常用控件
Qt常用控件 QWidget与QFrame QWidget所有图形控件的基类 QFrame与QWidget的区别 QFrame是基本控件的基类, QWidget是QFrame的基类. 因此QFrame ...
- 关于"为什么说Arduino是玩具?"的回答
最开始从51入门.之后MSP.ARM.FriendARM等等和使用keil(MDK).iar等工具.之后Arduino.Raspberry Pi的人想说: "说'Arduino是玩具,和Ar ...
- 工作中应对客户时日语mail的总结
磨砺技术珠矶,践行数据之道,追求卓越价值 回到上一级页面: PostgreSQL杂记页 回到顶级页面:PostgreSQL索引页 [作者 高健@博客园 luckyjackgao@gmail. ...
- JZOJ 10043 第k小数
Description 有两个非负整数数列,元素个数分别为N和M.从两个数列中分别任取一个数相乘,这样一共可以得到NM个数,询问这NM个数中第K小数是多少. 时间限制为20ms . Input 输入文 ...
- form提交方式Get与Post详解
form作为Html的一个元素,它就是为了客户端提交数据而产生的,它有两个很重要的属性action和method,action属性指明了处理提交的数据的应用程序的URL,而method有两个值:POS ...
- [VB.NET][C#]调用API获取或设置键盘按键状态
前言 通过 C# 或 VB.NET,你只需编写少量的代码即可实现一个按键精灵. 第一节 接口 调用系统 API 实现获取或设置指定的按键状态. 获取按键状态 调用 GetAsyncKeyState() ...
- html5新特性data_*自定义属性使用
HTML5规范里增加了一个自定义data属性. 这个自定义data属性的用法非常的简单, 就是你可以往HTML标签上添加任意以 "data-"开头的属性, 这些属性页面上是不显示的 ...
- 按键精灵手机版多点找色,图片对比 by <剑行洪荒> 忠哥
代码: Do Dim ret1,ret2 Delay 500 ret1 = CmpColor(76,72, "153274", 0.9) ret2 = Cm ...









>.
