摘要: The abstract provides a summary of the thesis and often contains the following moves in this order: 1. background to the thesis 2. purpose of the thes 阅读全文
posted @ 2020-05-14 11:57 lihao_Q 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 链表中的数据是以结点来表示的,每个结点的构成:元素(数据元素的映象) + 指针(指示后继元素存储位置),元素就是存储数据的存储单元,指针就是连接每个结点的地址数据。 以“结点的序列”表示线性表称作线性链表(单链表),单链表是链式存取的结构。 阅读全文
posted @ 2020-05-13 15:53 lihao_Q 阅读(139) 评论(0) 推荐(0) 编辑
摘要: ```package stack;public class MyQueue { int[] elements; public MyQueue() { elements=new int[0]; } //入队 public void add(int element) { // 创建一个新的数组 int[] newArr = new... 阅读全文
posted @ 2020-05-13 15:10 lihao_Q 阅读(86) 评论(0) 推荐(0) 编辑
摘要: ``` package stack; public class MyStack { //栈的底层我们使用数组来存储数据 int[] elements; public MyStack() { elements = new int[0]; } //压入元素 public void push(int element) { // 创建一个新的数组 int[] newArr = new int[elemen 阅读全文
posted @ 2020-05-13 14:56 lihao_Q 阅读(110) 评论(0) 推荐(0) 编辑
摘要: ``` package array; import java.util.Arrays; public class MyArray { // 用于存储数据的数组 private int[] elements; public MyArray() { elements = new int[0]; } // 获取数组长度的方法 public int size() { return elements.len 阅读全文
posted @ 2020-05-13 11:11 lihao_Q 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 线性结构的主要内容有: 数组、栈、队列、单链表、循环链表、双链表、递归、排序算法 。 (1)数组的基本使用 : 1.1新建数组 : package array; import java.util.Arrays; public class TestArray1 { public static void 阅读全文
posted @ 2020-05-12 16:07 lihao_Q 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 数据结构 是指相互之间存在着一种或多种关系的数据元素的集合和该集合中数据元素之间的关系组成。 数据的存储结构有 顺序存储结构 和 链式存储结构 。 (1) 顺序存储结构 是把数据元素存放在地址连续的存储单元内,其数据间的逻辑关系和物理关系是一致的。典型代表:数组。 (2)在计算机中用一组任意的存储单 阅读全文
posted @ 2020-05-12 11:20 lihao_Q 阅读(190) 评论(0) 推荐(0) 编辑