I can't resist these kind of questions. Some day when I'm a superhero
and my nemesis fails to lure me into his arctic lair with offers of
riches or maidens, he will ensnare me with a challenge to code a
solution to a puzzle.

0. Represent the parking lot as a grid. Each node is either part of a
road or is a parking spot (use inheritance). Each parking spot has a
parent road node, and a boolean for being occupied.
1. Draw the blueprint with android.graphics.Canvas. Blue background,
white lines.
2. Find the route via a search algorithm. Greedy Hill Climbing is
simple and works. A-star is less simple and works better.
3. Draw the route the search algorithm finds with yellow lines.


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Oct 5, 2:06 pm, kruti shah <kruti...@gmail.com> wrote:
> how do i show a blueprint of a parking lot which has got empty as well as
> occupied places.How do we show whther tht parking spot is occupied or no?And
> when the driver gets the info abt a vacant parking spot he selects and when
> he selects the route from the driver to tht location has to get highlighted
> .how do we do tht?
> --
> Kruti Kumar Shah
> Graduate Student
> MS CS
> Georgia Institute of Technology
> +1-(201)-668-0249
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to