The objective of the game of golf is to reach
the hole with the
fewest strokes. In MATLAB golf, the objective is to go from one
variable (the tee) to another (the hole) with the fewest keystrokes.
Example: How many positive elements in vector
a?
- One approach (score = 19):
- b=length(find(a>0))
- A better approach (score = 10):
- b=sum(a>0)
The winner is the contestant who solves the
problem with the fewest characters (not including spaces, newlines, and
semicolons).
See the rules
for more information. You can find some sample challenges here.
Schedule
Shotgun Start: Three holes will be
available on each of Monday, Tuesday and Wednesday of
Engineer's Week. Tee Time is anywhere between 8:00 AM and
Midnight each day. The challenges will be available on WebCT.
Prizes
The scores on each of the nine holes will be
totaled and the winner is the student with the minimum score. The
engineering alumni association is sponsoring three prizes: First place
($250), Second place ($150) and Third place ($100).