1. Trang chủ
  2. » Công Nghệ Thông Tin

Lecture data structures algorithms chapter 0

9 174 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 9
Dung lượng 1,21 MB

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

Nội dung

• What is Data Structures?–A data structure is defined by • 1 the logical arrangement of data elements, combined with • 2 the set of operations we need to access the elements... Atom

Trang 1

Data Structures

&

Algorithms

Trang 2

Introduction

Trang 3

• What is Data Structures?

–A data structure is defined by

• (1) the logical arrangement of data

elements, combined with

• (2) the set of operations we need to

access the elements

Trang 4

Atomic Variables

• Atomic variables can only store one

value at a time.

int nSum;

float fMark;

• A value stored in an atomic variable

cannot be subdivided.

Trang 5

–is composed of elements

(books)

–Accessing a particular

book requires

knowledge of the

arrangement of the

books

–Users access books only

through the librarian

Trang 6

Basic Data Structures

• Structures include

–Condensed lists

–Linked lists

–Stack, Queue

–Binary trees

–…and others

Trang 7

What is Algorithm?

–A computable set of steps to achieve

a desired result

–Relationship to Data Structure

• Example: Find an element, Sort list

Ngày đăng: 03/12/2015, 06:23

w