Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Dynamic array, size and capacity?

Também chamado de: dynamic array · size (of a dynamic array) · capacity (of a dynamic array)

Definition 14.3 University Computer Science — Year 1 · Capítulo 14 — Dynamic Arrays and Amortised Analysis

A dynamic array stores a sequence in a block of memory larger than needed. Its size is the number of elements, its capacity the number of cells in the block. Adding an element to a full array first moves the elements to a larger block, whose capacity is a constant factor larger.

Ler no capítulo →