Code Monkey home page Code Monkey logo

google-hashcode-2018's Introduction

Google Hashcode 2018 / Team Minions

The Task

Self-driving rides

Check https://hashcode.withgoogle.com/past_editions.html

The Result

Scores:

Input latest best
a_example 4 10
b_should_be_easy 176,877 176,877
c_no_hurry 12,456,428 13,086,527
d_metropolis 11,091,528 11,091,006
e_high_bonus 21,463,975 21,465,945
Total 45,188,812 45,820,365

Ranks:

  • 681 global
  • 56 Germany
  • 2 Hub

The Ideas

After creating the basic project structure, a FileReader and a basic algorithm discussion we split into two teams and followed three approaches:

One

  • A weighted look-ahead algorithm on a departure-sorted ride set

Two

  • Random assignment
  • Skip random rides

Three

  • Sort the rides by earliest possible pick-up time
  • Simply distribute the rides to the cars in a dump loop

The second approach was ready after a few minutes. Performance were as expected: Useless - ~14Mln

Afterwards we could upload the first "real" contribution of the third approach and fight with a few bugs in the first algorighm. The Score were somewhere around 38Mln

The Optimization

While the first approach seemed to be the most promising we kept stick somewhere and decided to try further. So For the last two hours we went full into the optimization of the third idea.

Skip unreachable rides

  • before assigning a ride chech if you will get any points with any ride at all.

All in for Bonus

  • after assigning all rides have a look at the skipped and try to assign them somewhere for a bonus

-> we were unable to implement this one in time (post-competition contribution coming)

Our end score were 45,820,365 as a result of all the intermediate results

The Team

Acknowledgments

  • thanks Kata Seeds for this seed Project
  • thanks MaibornWolff Munich for organizing a Hub

google-hashcode-2018's People

Contributors

anthu avatar davideibl avatar phischde avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.