انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Graph theory

الكلية كلية العلوم للبنات     القسم قسم الحاسبات     المرحلة 1
أستاذ المادة سماح عبد الهادي عباس الهاشمي       4/17/2011 9:11:55 AM

Graphs, directed graphs, trees and binary trees appear in many areas of mathematics and computer science.

 

This and the next two chapters will cover these topics. However, in order to understand how these objects may be

 

stored in memory and to understand algorithms on them, we need to know a little about certain data structures.

 

We assume the reader does understand linear and two-dimensional arrays; hence we will only discuss linked lists

 

and pointers, and stacks and queues below.

 

                                                             

 

Linked Lists and Pointers

 

Linked lists and pointers will be introduced by means of an example. Suppose a brokerage ?rm maintains a

 

?le in which each record contains a customer’s name and salesman; say the ?le contains the following data:

 

 

 

Customer    Adams     Brown     Clark     Drew      Evans     Farmer     Geller      Hiller      Infeld

 


Salesman     Smith       Ray

 


 

There are two basic operations that one would want to perform on the data:

 

Operation A: Given the name of a customer, ?nd his salesman.

 

Operation B: Given the name of a salesman, ?nd the list of his customers.

 

We discuss a number of ways the data may be stored in the computer, and the ease with which one can perform

 

the operations A and B on the data.

 


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .