Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Dynamic array, size and capacity?

Ook bekend als: dynamic array · size (of a dynamic array) · capacity (of a dynamic array)

Definition 14.3 University Computer Science — Year 1 · Hoofdstuk 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.

Lees in het hoofdstuk →