47
Consultant Presentation Group B5

Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Embed Size (px)

Citation preview

Page 1: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Consultant Presentation

Group B5

Page 2: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Presentation Outline

IntroductionHow to design by Group A5 FutureData Structure InterfaceFutureConclusion

Page 3: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Introduction

By Nigel

Page 4: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Our client projectOur client project : Bus Route System.

Nowadays, although private car is popular, there is a lot of people travel by bus. Some people such as tourists may not know the bus route well. In this case, This system is very useful.

Page 5: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Advantage 1Useful:

It is useful for the tourists and residents to search the route of the bus, especially for the tourists. It can help them to go to a place more easily and quickly. So that they don’t need to ask some people or find the map.

And if there is no direct bus route that the user selected in the system, it can help the user to search an indirect bus route.

Page 6: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Advantage 2Realistic:

Because the system don’t need too many intricate functions and data structure, it can be realized easily.Convenient:

This system can be set in all the bus stop and can search all the main locations.

Page 7: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Advantage 3Friendly:

The operation of the system is easy for everyone to use.Extensible:

For the system, it is used for the bus now. It can be advance it to diversified program which relate to other conveyance.

Page 8: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

TargetOur targets are people who travel by bus. Such as tourists and residents. In an international city, such as Macao, there are many tourists visit every day. If the government or some public utilities can provide more facilities, then it can make a good impression on the tourists.

Page 9: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Function 1

Through the system, there are three different functions for the user to choose:

1. A particular bus path

2. A bus route between two place 3. Calculation of the bus payment

Page 10: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Function 2A particular bus path:

Insert the number of the bus, the whole bus route show A bus route between two place :

Insert the starting and the terminal point and get the bus route between them Calculation of the bus payment :

The systems will calculus the bus payment

Page 11: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

How to design by Group A5

By Kenneth

Page 12: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

What function in their system

A particular bus pathA particular bus path (Insert the number of the bus, and then show (Insert the number of the bus, and then show

the whole bus route)the whole bus route)

A bus route from a place to A bus route from a place to another placeanother place

(Insert the starting and the terminal point, get (Insert the starting and the terminal point, get

the bus route between them)the bus route between them)

Page 13: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

What function in their system

The charge for busThe charge for bus Calculus the bus paymentCalculus the bus payment

Page 14: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Data structure & Data Base

They want to save data in data base and data structure

Page 15: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

What kind of data will be save in database

Different buses’ stop The information of the different buses’ routeThe company belongsThe fee of a particular bus

Page 16: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Data structure (for function 1)

Use link list to store data (bus stops)

The link between each nodes are path between each stops.

Page 17: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Data structure (for function 2)

uses O(N) time to access the data use hash table to collect data create an index array for each bus stop get the corresponding bus route in the hash table

Page 18: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

The Problem of Function 2

we think there still have some problem in this function

Example: how to choose the best way if there are many path between two stops.

Page 19: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Data Structure

By Jacky

Page 20: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Client’s ideaA particular bus path

Insert the number of the bus, the whole bus route shows.A bus route from a place to another place

Insert the starting and the terminal point; get the bus route between them.

Page 21: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

How to solve it ?

After we have meeting discuss this two data structure problem. at that time, we find that there is several ways to solve it.1)Array, 2) vector, 3) hash table

Page 22: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Which one we choose?

Hash table: We think it is not the good way to do this or it is not necessary. Reason:if use hash table, the hash function is rather trouble for that and also maybe consider the link list.

Page 23: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Which one we choose?Array: Since the sequence of the bus station is fix.

Reason: a) can arrange the sequence of the bus station b) avoid getting the hash function problem      

Disadvantage: can not add or eliminate the bus station.

Page 24: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Which one we choose?

Vector: similar to the array but it can be add or eliminate easily. Reason:

a) the search time is almost same as hashing

b) no need to consider the hash function.

Page 25: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Further Extensions 1Arrange the whole bus station and put it to the vector orderly also all the bus No. which will through that bus station. As the figure 1.1 16,1A,5..

98,22,12..30,11....…

A

B

C

D

E

Page 26: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Further Extensions 2

Actually do:First find the starting point and then find the terminal point Get the intersection about this two

Page 27: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Another Problem 1

The changing bus problemIt is a rather difficult problem of our client program. Since it is so many situation about this so that we are not easy to control.

Page 28: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Another Problem 2

And I have though a way to solve it, but we still have not discussed before. I don’t know this is work or not. My idea is use the vector and also the graph data structure.

Page 29: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Another Problem 3

The vector find the point to point The graph find the shortest way from the starting station to the terminal station. Search each bus one by one which can go to destination, or not. Find again and again…until find the answer.

Page 30: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Interface

By Simon

Page 31: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Procedure 1

Beautiful interface like a screen

Show the city map and all the stations

Bus routes on the map (several bus routes pass same station )

Page 32: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Procedure 2

Each station has a button

Change Starting station (default set is location used)

Click Destination station (input the station name)

Page 33: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Procedure 3

System can compute the routes

Draw the path (highlight) from source to destination

Directly find the optimal path from the Screen

Page 34: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Procedure 4

Display a Dialog BoxInclude all the information:Bus company name Bus number Bus route (starting station and terminal station are marked) Number of station Total fee

Page 35: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Software

Use Visual C++ .NET to implement the interface Good for design the interface, graphics and image programming More power, more compliance, more C++

Page 36: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Reference book

“Visual C++ .NET graphics and image programming” (Chinese Edition)

Knowledge for programming the graphics and implement the interface

Page 37: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Interface 1

Open the map file (DDB bitmap file)

Set up all the station and bus routes

Background of this interface

Page 38: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Interface 2

3D-graphics-screen display Design the button of each station

Use the mouse mutual plot technique set the mouse clicking position Input the Starting station and the terminal station

Page 39: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Interface 3

Use the plot function drawing the line from the source

to the destinationSet the Pixel of each station

use some function (just like MoveTo(), LineTo()

Page 40: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Interface 4

Display of the Dialog Box base GUI function to implement

Information save in the Database

Page 41: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Future Consultant

By Solomon

Page 42: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Future

How to help our client A5

Schedule

Page 43: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

How to help our client

We will give some suggestion or some idealDiscussion together in order to improve their programAlso, we will choose some book that it can help our client

Page 44: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Schedule

We will assist our client in the May and June

At least we have third meeting with A5

Each meeting about 2-3 hours

Page 45: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Conclusion

Improve the Data Structure and Interface Teach them more knowledge about GUI and graphics programming.Support them with their final project

Page 46: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

Q & A

Page 47: Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

~The End~

Thank you for attention!