1. Trang chủ
  2. » Ngoại Ngữ

Lecture Data structures and other objects using C++ - Chapter 11: Heaps - Trường Đại học Công nghiệp Thực phẩm Tp. Hồ Chí Minh

10 8 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 10
Dung lượng 414,82 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Data Structures and Other Objects Using C++... A  heap  is a .[r]

Trang 1

Chapter 11 has several  programming projects, including a  project that uses  heaps  

This presentation shows you what 

a heap is, and demonstrates two of  the important heap algorithms.

Data Structures

and Other Objects

Using C++

Trang 2

A  heap  is a 

certain kind of  complete 

binary tree.

Trang 3

A  heap  is a 

certain kind of 

complete 

binary tree.

When a complete binary tree is built, its first node must be

the root

Trang 4

binary tree.

Left child

of the root

The second node is always the left child

of the root

Trang 5

The third node is always the right child

of the root

Trang 6

binary tree.

The next nodes always fill the next level from left­to­right.

Trang 7

binary tree.

The next nodes always fill the next level from left­to­right

Trang 8

binary tree.

The next nodes always fill the next level from left­to­right

Trang 9

binary tree.

The next nodes always fill the next level from left­to­right

Trang 10

Complete  binary tree.

Ngày đăng: 01/04/2021, 19:24

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN