Словари, Словарь Dictionary
! & ( * , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = @ %
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ { ~
H H. H/ HA HB HC HD HE HF HH HI HK HL HM HN HO HP HQ HR HS HT HU HV HY

heap

 
 
heap 1. An area of memory used for where blocks of memory are allocated and freed in an arbitrary order and the pattern of allocation and size of blocks is not known until . Typically, a program has one heap which it may use for several different purposes. Heap is required by languages in which functions can return arbitrary data structures or functions with (see ). In functions and provide access to the heap. Contrast . See also . 2. A data structure with its elements partially ordered (sorted) such that finding either the minimum or the maximum (but not both) of the elements is computationally inexpensive (independent of the number of elements), while both adding a new item and finding each subsequent smallest/largest element can be done in O(log n) time, where n is the number of elements. Formally, a heap is a with a key in each , such that all the of the tree are on two adjacent levels; all leaves on the lowest level occur to the left and all levels, except possibly the lowest, are filled; and the key in the is at least as large as the keys in its children (if any), and the left and right subtrees (if they exist) are again heaps. Note that the last condition assumes that the goal is finding the minimum quickly. Heaps are often implemented as one-dimensional . Still assuming that the goal is finding the minimum quickly the is heap[i] <= heap[2*i] and heap[i] <= heap[2*i+1] for all i, where heap[i] denotes the i-th element, heap[1] being the first. Heaps can be used to implement or in algorithms. (1996-02-26)
на заглавную О сайте10 самыхСловариОбратная связь к началу страницы
© 2010 Admin User
словарь
словарь online
online словарь
цитаты chrome
XHTML | CSS
1.8.11