20172306 2018-2019 Java Programming and data structure (part One) Summary of learning contents in the first week of learning Summary The first chapter overview
(Program = data structure + algorithm software = program + Software engineering)
Chapter Two algorithm analysis
(Algorithmic analysis is the basis of computer science)
Textbook Layout Questions answered
for(int count = 0 ; count < n ; count++) for(int count2 = 0 ; count2 < n ; count2 = count2 + 2) { System.out.println(count,count2); }}
Solution: Growth function is N^2/2; order is n^2. Because the first look inside, you will find that the inner loop to carry out N/2 times, the outer loop to do n times, according to the previous study, will be multiplied inside and outside, then N^2/2.
- EX2.5 Please determine the growth function and order of the following code snippet
for(int count = 0 ; count < n ; count++) for(int count2 = 0 ; count2 < n ; count2 = count2 * 2) { System.out.println(count,count2); }}
Solution: The growth function is NLOGN and the order is Nlogn. Because, can be listed first, you will find that the inner layer of the number of loops is LOGN, the outer layer is n times, and internal and external multiplication of nlogn.
Pair and peer review templates:
- Blogs that are worth learning or questions:
reviewed the classmates blog and code
- This week's study of the knot
- 20172325
- Pairs of learning content
- Read the contents of the 12th chapter together
- The exercises that were arranged after the class were completed together
Other (sentiment, thinking, etc., optional)
新学期开始了,又要和Java这门课斗智斗勇了!上学期这门课学的不咋地,这学期不知道能够学成什么样。假期说起博客的事情,我说我不爱写博客,我爸说,你都看书了为什么你就不好好把博客写的好点呢?我一想,有点道理,所以呢,刚开学,还是要对自己有信心的,争取这学期能保持好好写博客,学好这门课!!!
Learning progress Bar
|
lines of code (new/cumulative) |
Blog Volume (Add/accumulate) |
Learning Time (new/cumulative) |
Important Growth |
Goal |
5000 rows |
30 Articles |
400 hours |
|
First week |
0/0 |
1/1 |
6/6 |
|
Resources
- Java architecture design and data Structure (fourth edition)
20172306 2018-2019 "Java Programming and data structure" first week study summary