693.96K
Категория: ПрограммированиеПрограммирование

Parking Space System. Creating program using Data Structure

1.

Parking Space System
Name : Nozdryukhin Nikita
ID : U2110217
Section : 002

2.

Problem Introduction
In a little more than a century since cars
became a mass phenomenon, parking has
turned
from an unimportant topic into a problem. At
first, no one thought about it, then it
became a matter for discussion, and in the
future... most parking lots have become paid.
The first and main trend for today is to
increase the efficiency of parking space: how
to make more cars fit on a given unit of area?
Also, if you look at how people park cars in
regular parking lots, you might be surprised
I myself have seen such situations when a
person closed 3-4 places for others with his car
at once

3.


So, I started thinking about
how to solve this problem and
still found one solution, This is
an underground automatic
parking
Parking, in the form of a
capsule, the platform of which
will come and take the car to
its programmed place

4.

Some examples of ideas

5.

Creating program using Data Structure
And I started writing code
that would take a number,
the index in which my
parking space is located
and search for it using a
Binary tree.
I used log(2n) to find a
place more efficiently
and quickly.
So i create random
number for your card.
Also created an array for
our parking spaces
Lets take the first spot in
array as start (groundplatform)

6.

Now,here i created 2
Variables for creating
loop
When your program
find your space, the
platform starts to descend
and put the car where the
index of your card is,then
rises to the top
To pick up the car, you just
need to use the card again

7.

Thank you !!!
English     Русский Правила