网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Linked list
释义

Linked list

原声例句
科技 Crash Course

This means that the next node in the linked list is located at memory location 1008.

这意味着链表中的下一个节点位于内存位置 1008。

科技 Crash Course

When programmers use linked lists, they rarely look at the memory values stored in the next pointers.

当程序员使用链表时,他们很少查看存储在 next 指针中的内存值。

科技 Crash Course

Unlike an array, whose size has to be pre-defined, linked lists can be dynamically extended or shortened.

与必须预先定义大小的数组不同,链表可以动态扩展或缩短。

科技 Crash Course

Using this struct, we can create a linked list, which is a flexible data structure that can store many nodes.

使用这个结构,我们可以创建一个链表,它是一种灵活的数据结构,可以存储很多节点。

科技 Crash Course

Instead, they can use an abstraction of a linked list, that looks like this, which is much easier to conceptualize.

相反,他们可以使用链表的抽象,看起来像这样,更容易概念化。

科技 Crash Course

With just a small change, we can use linked lists as stacks, which are LIFO… Last-In First-Out.

只需稍作改动,我们就可以将链表用作堆栈,即 LIFO… … 后进先出。

科技 Crash Course

You can even have tree nodes that use linked lists to store all the nodes they point to.

您甚至可以让树节点使用链表来存储它们指向的所有节点。

科技 Crash Course

Imagine we have a pointer, named " post office queue" , that points to the first node in our linked list.

假设我们有一个名为“邮局队列”的指针,它指向链表中的第一个节点。

科技 Crash Course

Looking down the linked list, to the next node, we see it stores the value 112 and points to another node at location 1002.

向下看链表,到下一个节点,我们看到它存储值 112 并指向位置 1002 处的另一个节点。

科技 Crash Course

Owing to this flexibility, many more-complex data structures are built on top of linked lists The most famous and universal are queues and stacks.

由于这种灵活性,许多更复杂的数据结构都建立在链表之上,最著名和最普遍的是队列和堆栈。

科技 Crash Course

So this linked list happened to be circular, but it could also have been terminated by using a next pointer value of 0 -- the null value -- which would indicate we've reached the end of the list.

所以这个链表恰好是循环的,但它也可以通过使用 next 指针值 0——空值——来终止,这表明我们已经到达了链表的末尾。

科技 Crash Course

If we want to enqueue someone, that is, add them to the line, we have to traverse down the linked list until we hit the end, and then change that next pointer to point to the new person.

如果我们想将某人入队,也就是将他们添加到行中,我们必须向下遍历链表直到到达末尾,然后将 next 指针更改为指向新人。

中文百科

链表

链表Linked list)是一种常见的基础数据结构,是一种线性表,但是并不会按线性的顺序存储数据,而是在每一个节点里存到下一个节点的指针(Pointer)。由于不必须按顺序存储,链表在插入的时候可以达到O(1)的复杂度,比另一种线性表顺序表快得多,但是查找一个节点或者访问特定编号的节点则需要O(n)的时间,而顺序表相应的时间复杂度分别是O(logn)和O(1)。

使用链表结构可以克服数组链表需要预先知道数据大小的缺点,链表结构可以充分利用计算机内存空间,实现灵活的内存动态管理。但是链表失去了数组随机读取的优点,同时链表由于增加了结点的指针域,空间开销比较大。

英语百科

Linked list 链表

In computer science, a linked list is a linear collection of data elements, called nodes pointing to the next node by means of a pointer. It is a data structure consisting of a group of nodes which together represent a sequence. Under the simplest form, each node is composed of data and a reference (in other words, a link) to the next node in the sequence; more complex variants add additional links. This structure allows for efficient insertion or removal of elements from any position in the sequence.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/20 7:47:47