msc-projects-12.html
author Christian Urban <urbanc@in.tum.de>
Tue, 06 Nov 2012 20:37:07 +0000
changeset 161 51fa2149250d
parent 160 f4e2cfbde15e
child 162 0752a5de9537
permissions -rw-r--r--
tuned
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
154
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
<HEAD>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
<TITLE>2012/13 MSc Projects</TITLE>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
<BASE HREF="http://www.inf.kcl.ac.uk/staff/urbanc/">
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
<script type="text/javascript" src="striper.js"></script>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
<link rel="stylesheet" href="nominal.css">
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
</HEAD>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
<BODY TEXT="#000000" 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
      BGCOLOR="#4169E1" 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
      LINK="#0000EF" 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
      VLINK="#51188E" 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
      ALINK="#FF0000"
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
      ONLOAD="striper('ul','striped','li','first,second')">
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
<TABLE WIDTH="100%" 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
       BGCOLOR="#4169E1" 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
       BORDER="0"   
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
       FRAME="border"  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
       CELLPADDING="10"     
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
       CELLSPACING="2"
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
       RULES="all">
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
<TR>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
<TD BGCOLOR="#FFFFFF" 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
    WIDTH="75%" 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
    VALIGN="TOP">
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
<H2>2012/13 MSc Projects</H2>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
<H4>Supervisor: Christian Urban</H4> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
<H4>Email: christian dot urban at kcl dot ac dot uk,  Office: Strand Building S1.27</H4>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
<H4>If you are interested in a project, please send me an email and we can discuss details. Please include
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
a short description about your programming skills and Computer Science background in your first email. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
I will also need your King's username in order to book the project for you. Thanks.</H4> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    38
<H4>Note that besides being a lecturer at the theoretical end of Computer Science, I am also a passionate
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
    <A HREF="http://en.wikipedia.org/wiki/Hacker_(programmer_subculture)">hacker</A> &hellip;
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
    defined as &ldquo;a person who enjoys exploring the details of programmable systems and 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
    stretching their capabilities, as opposed to most users, who prefer to learn only the minimum 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
    necessary.&rdquo; I am always happy to supervise like-minded students.</H4>  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
<ul class="striped">
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
<li> <H4>[CU1] Regular Expression Matching and Partial Derivatives</H4>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
  <B>Description:</b>  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
  <A HREF="http://en.wikipedia.org/wiki/Regular_expression">Regular expressions</A> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
  are extremely useful for many text-processing tasks...finding patterns in texts,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
  lexing programs, syntax highlighting and so on. Given that regular expressions were
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
  introduced in 1950 by <A HREF="http://en.wikipedia.org/wiki/Stephen_Cole_Kleene">Stephen Kleene</A>, you might think 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
  regular expressions have since been studied to death. But you would definitely be mistaken: in fact they are still
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
  an active research area. For example
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
  <A HREF="http://www.home.hs-karlsruhe.de/~suma0002/publications/ppdp12-part-deriv-sub-match.pdf">this paper</A> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
  about regular expression matching and partial derivatives was presented this summer at the international 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
  PPDP'12 conference.</p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
  <p>The background for this project is that some regular expressions are 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
  &quot;<A HREF="http://en.wikipedia.org/wiki/ReDoS#Examples">evil</A>&quot; 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
  and can &quot;stab you in the back&quot; according to
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
  this recent <A HREF="http://tech.blog.cueup.com/regular-expressions-will-stab-you-in-the-back">blog post</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
  For example, if you use in <A HREF="http://www.python.org">Python</A> or 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
  in <A HREF="http://www.ruby-lang.org/en/">Ruby</A> (probably also in other mainstream programming languages) the 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
  innocently looking regular expression <code>a?{28}a{28}</code> and match it, say, against the string 
155
Christian Urban <urbanc@in.tum.de>
parents: 154
diff changeset
    66
  <code>aaaaaaaaaaaaaaaaaaaaaaaaaaaa</code> (that is 28 <code>a</code>s), you will soon notice that your CPU usage goes to 100%. In fact,
154
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
  Python and Ruby need approximately 30 seconds for matching this string. You can try it for yourself:
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
  <A HREF="http://www.dcs.kcl.ac.uk/staff/urbanc/cgi-bin/repos.cgi/afl-material/raw-file/tip/re.py">re.py</A> (Python version) and 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
  <A HREF="http://www.dcs.kcl.ac.uk/staff/urbanc/cgi-bin/repos.cgi/afl-material/raw-file/tip/re-internal.rb">re.rb</A> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
  (Ruby version). You can imagine an attacker
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
  mounting a nice <A HREF="http://en.wikipedia.org/wiki/Denial-of-service_attack">DoS attack</A> against 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
  your program if it contains such an &quot;evil&quot; regular expression. Actually 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
  <A HREF="http://www.scala-lang.org/">Scala</A> (and also Java) are almost immune from such
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
  attacks as they can deal with strings of up to 4,300 <code>a</code>s in less than a second. But if you scale
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
  the regular expression and string further to, say, 4,600 <code>a</code>s, you get a <code>StackOverflowError</code> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
  exception chrashing your program.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
  On a rainy afternoon, I implemented 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
  <A HREF="http://www.dcs.kcl.ac.uk/staff/urbanc/cgi-bin/repos.cgi/afl-material/raw-file/tip/re3.scala">this</A> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
  regular expression matcher in Scala. It is not as fast as the official one in Scala, but
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
  it can match up to 11,000 <code>a</code>s in less than 5 seconds  without raising any exception
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
  (remember Python and Ruby both need nearly 30 seconds to process 28(!) <code>a</code>s, and Scala's
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
  offical matcher maxes out at 4,600 <code>a</code>s). My matcher is approximately
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
  85 lines of code and based on the concept of 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
  <A HREF="http://lambda-the-ultimate.org/node/2293">derivatives of regular experssions</A>.
156
Christian Urban <urbanc@in.tum.de>
parents: 155
diff changeset
    88
  These derivatives were introduced in 1964 by <A HREF="http://en.wikipedia.org/wiki/Janusz_Brzozowski_(computer_scientist)">
154
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    89
  Janusz Brzozowski</A>, but according to this 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    90
  <A HREF="http://www.cl.cam.ac.uk/~so294/documents/jfp09.pdf">paper</A> had been lost in the &quot;sands of time&quot;.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
  The advantage of derivatives is that they side-step completely the usual 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
  <A HREF="http://hackingoff.com/compilers/regular-expression-to-nfa-dfa">translations</A> of regular expressions
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
  into NFAs or DFAs, which can introduce the exponential behaviour exhibited by the regular
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    94
  expression matchers in Python and Ruby.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    95
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    97
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    98
  Now the guys from the 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
  <A HREF="http://www.home.hs-karlsruhe.de/~suma0002/publications/ppdp12-part-deriv-sub-match.pdf">PPDP'12-paper</A> mentioned 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   100
  above claim they are even faster than me and can deal with even more features of regular expressions
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   101
  (for example subexpression matching, which my rainy-afternoon matcher lacks). I am sure they thought
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   102
  about the problem much longer than a single afternoon. The task 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   103
  in this project is to find out how good they actually are by implementing the results from their paper. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   104
  Their approach is based on the concept of partial derivatives introduced in 1994 by
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   105
  <A HREF="http://reference.kfupm.edu.sa/content/p/a/partial_derivatives_of_regular_expressio_1319383.pdf">Valentin Antimirov</A>.
156
Christian Urban <urbanc@in.tum.de>
parents: 155
diff changeset
   106
  I used them once myself in a <A HREF="http://www.inf.kcl.ac.uk/staff/urbanc/Publications/rexp.pdf">paper</A> 
Christian Urban <urbanc@in.tum.de>
parents: 155
diff changeset
   107
  in order to prove the <A HREF="http://en.wikipedia.org/wiki/Myhill–Nerode_theorem">Myhill-Nerode theorem</A>.
157
Christian Urban <urbanc@in.tum.de>
parents: 156
diff changeset
   108
  So I know they are worth their money. Still, it would be interesting to actually compare their results
158
Christian Urban <urbanc@in.tum.de>
parents: 157
diff changeset
   109
  with my simple rainy-afternoon matcher and &quot;blow away&quot; the regular expression matchers in Python and Ruby (and possibly
157
Christian Urban <urbanc@in.tum.de>
parents: 156
diff changeset
   110
  in Scala too).
154
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   111
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   112
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   113
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   114
  <B>Literature:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   115
  The place to start with this project is obviously this
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   116
  <A HREF="http://www.home.hs-karlsruhe.de/~suma0002/publications/ppdp12-part-deriv-sub-match.pdf">paper</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   117
  Traditional methods for regular expression matching are explained
159
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
   118
  in the Wikipedia articles 
154
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   119
  <A HREF="http://en.wikipedia.org/wiki/DFA_minimization">here</A> and 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
  <A HREF="http://en.wikipedia.org/wiki/Powerset_construction">here</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
  The authoritative <A HREF="http://infolab.stanford.edu/~ullman/ialc.html">book</A>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   122
  on automata and regular expressions is by John Hopcroft and Jeffrey Ullmann (available in the library). 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   123
  There is also an online course about this topic by Ullman at 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   124
  <A HREF="https://www.coursera.org/course/automata">Coursera</A>, though IMHO not 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   125
  done with love. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   126
  Finally, there are millions of other pointers about regular expression
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   127
  matching on the Net. Test cases for &quot;<A HREF="http://en.wikipedia.org/wiki/ReDoS#Examples">evil</A>&quot;
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   128
  regular expressions can be obtained from <A HREF="http://en.wikipedia.org/wiki/ReDoS#Examples">here</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   129
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   130
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   131
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   132
  <B>Skills:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   133
  This is a project for a student with an interest in theory and some
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   134
  reasonable programming skills. The project can be easily implemented
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
  in languages like
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   136
  <A HREF="http://www.scala-lang.org/">Scala</A>,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   137
  <A HREF="http://en.wikipedia.org/wiki/Standard_ML">ML</A>,  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   138
  <A HREF="http://haskell.org/haskellwiki/Haskell">Haskell</A>, 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   139
  <A HREF="http://www.python.org">Python</A>, etc.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   140
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   141
160
Christian Urban <urbanc@in.tum.de>
parents: 159
diff changeset
   142
161
Christian Urban <urbanc@in.tum.de>
parents: 160
diff changeset
   143
<li> <H4>[CU2] Automata Theory in Your Web-Browser</H4>
160
Christian Urban <urbanc@in.tum.de>
parents: 159
diff changeset
   144
154
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   145
<!--
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   146
<li> <H4>[CU2] Equivalence Checking of Regular Expressions</H4>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   147
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   148
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   149
  <B>Description:</b>  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   150
  Solving the problem of deciding the equivalence of regular expressions can be used
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   151
  to decide a number of problems in automated reasoning. Recently, 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   152
  <A HREF="http://www.cs.unibo.it/~asperti/">Andreas Asperti</A>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   153
  proposed a simple method for deciding regular expression equivalence described
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   154
  <A HREF="http://www.cs.unibo.it/~asperti/PAPERS/compact.pdf">here</A>. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
  The task is to implement this method and test it on examples.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   156
  It would be also interesting to see whether Asperti's method applies to
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   157
  extended regular expressions, described
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   158
  <A HREF="http://ww2.cs.mu.oz.au/~sulzmann/manuscript/reg-exp-partial-derivatives.pdf">here</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   159
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   160
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   161
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   162
  <B>Literature:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   163
  The central literature is obviously the papers
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   164
  <A HREF="http://www.cs.unibo.it/~asperti/PAPERS/compact.pdf">here</A> and
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   165
  <A HREF="http://ww2.cs.mu.oz.au/~sulzmann/manuscript/reg-exp-partial-derivatives.pdf">here</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   166
  Asperti has also some slides <A HREF="http://www.cs.unibo.it/~asperti/SLIDES/regular.pdf">here</a>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   167
  More references about regular expressions can be found
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   168
  <A HREF="http://en.wikipedia.org/wiki/Regular_expression">here</A>. Like in
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   169
  [CU1], I will give a lot of the background pf this project in
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   170
  my Automata and Formal Languages course (6CCS3AFL).
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   171
  </p>  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   172
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   173
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   174
  <B>Skills:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   175
  This is a project for a student with a passion for theory and some
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   176
  reasonable programming skills. The project can be easily implemented
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   177
  in languages like Scala
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   178
  <A HREF="http://www.scala-lang.org/">Scala</A>,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   179
  <A HREF="http://en.wikipedia.org/wiki/Standard_ML">ML</A>,  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   180
  <A HREF="http://haskell.org/haskellwiki/Haskell">Haskell</A>, 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   181
  <A HREF="http://www.python.org">Python</A>, etc.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   182
  Being able to read <A HREF="http://haskell.org/haskellwiki/Haskell">Haskell</A>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   183
  code is beneficial for the part involving extended regular expressions.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   184
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   185
-->
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   186
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   187
<li> <H4>[CU3] Machine Code Generation for a Simple Compiler</H4>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   188
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   189
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   190
  <b>Description:</b> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   191
  Compilers translate high-level programs that humans can read and write into
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   192
  efficient machine code that can be run on a CPU or virtual machine.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   193
  I recently implemented a very simple compiler for a very simple functional
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   194
  programming language following this 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   195
  <A HREF="http://www.cs.princeton.edu/~dpw/papers/tal-toplas.pdf">paper</A> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   196
  (also described <A HREF="http://www.cs.princeton.edu/~dpw/papers/tal-tr.pdf">here</A>).
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   197
  My code, written in <A HREF="http://www.scala-lang.org/">Scala</A>, of this compiler is 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   198
  <A HREF="http://www.dcs.kcl.ac.uk/staff/urbanc/compiler.scala">here</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   199
  The compiler can deal with simple programs involving natural numbers, such
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   200
  as Fibonacci numbers
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   201
  or factorial (but it can be easily extended - that is not the point).
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   202
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   203
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   204
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   205
  While the hard work has been done (understanding the two papers above),
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   206
  my compiler only produces some idealised machine code. For example I
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   207
  assume there are infinitely many registers. The goal of this
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   208
  project is to generate machine code that is more realistic and can
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   209
  run on a CPU, like x86, or run on a virtual machine, say the JVM. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   210
  This gives probably a speedup of thousand times in comparison to
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   211
  my naive machine code and virtual machine. The project
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   212
  requires to dig into the literature about real CPUs and generating 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   213
  real machine code. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   214
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   215
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   216
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   217
  <B>Literature:</B>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   218
  There is a lot of literature about compilers 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   219
  (for example <A HREF="http://www.cs.princeton.edu/~appel/papers/cwc.html">this book</A> -
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   220
  I can lend you my copy for the duration of the project). A very good overview article
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   221
  about implementing compilers by 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   222
  <A HREF="http://tratt.net/laurie/">Laurie Tratt</A> is 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   223
  <A HREF="http://tratt.net/laurie/tech_articles/articles/how_difficult_is_it_to_write_a_compiler">here</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   224
  An introduction into x86 machine code is <A HREF="http://ianseyler.github.com/easy_x86-64/">here</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   225
  Intel's official manual for the x86 instruction is 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   226
  <A HREF="http://download.intel.com/design/intarch/manuals/24319101.pdf">here</A>. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   227
  A simple assembler for the JVM is described <A HREF="http://jasmin.sourceforge.net">here</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   228
  An interesting twist of this project is to not generate code for a CPU, but
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   229
  for the intermediate language of the <A HREF="http://llvm.org">LLVM</A> compiler
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   230
  (also described <A HREF="https://wiki.aalto.fi/display/t1065450/LLVM+IR">here</A> and
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   231
  <A HREF="http://llvm.org/docs/LangRef.html">here</A>). If you want to see
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   232
  what machine code looks like you can compile your C-program using gcc -S.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   233
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   234
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   235
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   236
  <B>Skills:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   237
  This is a project for a student with a deep interest in programming languages and
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   238
  compilers. Since my compiler is implemented in <A HREF="http://www.scala-lang.org/">Scala</A>,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   239
  it would make sense to continue this project in this language. I can be
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   240
  of help with questions and books about <A HREF="http://www.scala-lang.org/">Scala</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   241
  But if Scala is a problem, my code can also be translated quickly into any other functional
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   242
  language. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   243
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   244
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   245
<li> <H4>[CU4] Implementation of Register Spilling Algorithms</H4>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   246
  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   247
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   248
  <b>Description:</b> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   249
  This project is similar to [CU3]. The emphasis here, however, is on the
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   250
  implementation and comparison of register spilling algorithms, also often called register allocation 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   251
  algorithms. They are part of any respectable compiler.  As said
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   252
  in [CU3], however, my simple compiler lacks them and assumes an infinite amount of registers instead.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   253
  Real CPUs however only provide a fixed amount of registers (for example
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   254
  x86-64 has 16 general purpose registers). Whenever a program needs
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   255
  to hold more values than registers, the values need to be &ldquo;spilled&rdquo;
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   256
  into the main memory. Register spilling algorithms try to minimise
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   257
  this spilling, since fetching values from main memory is a costly 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   258
  operation. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   259
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   260
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   261
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   262
  The classic algorithm for register spilling uses a
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   263
  <A HREF="http://en.wikipedia.org/wiki/Register_allocation">graph-colouring method</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   264
  However, for some time the <A HREF="http://llvm.org">LLVM</A> compiler
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   265
  used a supposedly more efficient method, called the linear scan allocation method
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   266
  (described 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   267
  <A HREF="http://www.cs.ucla.edu/~palsberg/course/cs132/linearscan.pdf">here</A>).
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   268
  However, it was later decided to abandon this method in favour of 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   269
  a <A HREF="http://blog.llvm.org/2011/09/greedy-register-allocation-in-llvm-30.html">
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   270
  greedy register allocation</A> method. It would be nice if this project can find out
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   271
  what the issues are with these methods and implement at least one of them for the 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   272
  simple compiler referenced in [CU3].
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   273
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   274
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   275
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   276
  <B>Literature:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   277
  The graph colouring method is described in Andrew Appel's 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   278
  <A HREF="http://www.cs.princeton.edu/~appel/modern/java/">book</A> on compilers
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   279
  (I can give you my copy of this book, if it is not available in the library).
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   280
  There is also a survey 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   281
  <A HREF="http://compilers.cs.ucla.edu/fernando/publications/drafts/survey.pdf">article</A> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   282
  about register allocation algorithms with further pointers.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   283
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   284
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   285
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   286
  <B>Skills:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   287
  Same skills as [CU3].
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   288
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   289
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   290
<li> <H4>[CU5] A Student Polling System</H4>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   291
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   292
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   293
  <B>Description:</B>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   294
  One of the more annoying aspects of giving a lecture is to ask a question
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   295
  to the students and no matter how easy the questions is to not 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   296
  receive an answer. Recently, the online course system 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   297
  <A HREF="http://www.udacity.com">Udacity</A> made an art out of
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   298
  asking questions during lectures (see for example the
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   299
  <A HREF="http://www.udacity.com/overview/Course/cs253/CourseRev/apr2012">Web Application Engineering</A> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   300
  course CS253).
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   301
  The lecturer there gives multiple-choice questions as part of the lecture and the students need to 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   302
  click on the appropriate answer. This works very well in the online world. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   303
  For  &ldquo;real-world&rdquo; lectures, the department has some 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   304
  <A HREF="http://en.wikipedia.org/wiki/Audience_response">clickers</A>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   305
  (these are little devices part of an audience response systems). However, 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   306
  they are a logistic nightmare for the lecturer: they need to be distributed 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   307
  during the lecture and collected at the end. Nowadays, where students
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   308
  come with their own laptop or smartphone to lectures, this can
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   309
  be improved.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   310
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   311
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   312
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   313
  The task of this project is to implement an online student
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   314
  polling system. The lecturer should be able to prepare 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   315
  questions beforehand (encoded as some web-form) and be able to 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   316
  show them during the lecture. The students
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   317
  can give their answers by clicking on the corresponding webpage.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   318
  The lecturer can then collect the responses online and evaluate them 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   319
  immediately. Such a system is sometimes called
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   320
  <A HREF="http://en.wikipedia.org/wiki/Audience_response#Smartphone_.2F_HTTP_voting">HTML voting</A>. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   321
  There are a number of commercial
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   322
  solutions for this problem, but they are not easy to use (in addition
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   323
  to being ridiculously expensive). A good student can easily improve upon
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   324
  what they provide. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   325
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   326
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   327
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   328
  The problem of student polling is not as hard as 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   329
  <A HREF="http://en.wikipedia.org/wiki/Electronic_voting">electronic voting</A>, 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   330
  which essentially is still an unsolved problem in Computer Science. The
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   331
  students only need to be prevented from answering question more than once thus skewing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   332
  any statistics. Unlike electronic voting, no audit trail needs to be kept
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   333
  for student polling. Restricting the number of answers can probably be solved 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   334
  by setting appropriate cookies on the students
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   335
  computers or smart phones.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   336
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   337
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   338
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   339
  <B>Literature:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   340
  The project requires fluency in a web-programming language (for example 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   341
  <A HREF="http://en.wikipedia.org/wiki/JavaScript">Javascript</A>,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   342
  <A HREF="http://en.wikipedia.org/wiki/PHP">PHP</A>, 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   343
  Java, <A HREF="http://www.python.org">Python</A>, 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   344
  <A HREF="http://en.wikipedia.org/wiki/Go_(programming_language)">Go</A>, 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   345
  <A HREF="http://www.scala-lang.org/">Scala</A>,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   346
  <A HREF="http://en.wikipedia.org/wiki/Ruby_(programming_language)">Ruby</A>) 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   347
  and possibly a cloud application platform (for example
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   348
  <A HREF="https://developers.google.com/appengine/">Google App Engine</a> or 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   349
  <A HREF="http://www.heroku.com">Heroku</A>).
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   350
  For web-programming the 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   351
  <A HREF="http://www.udacity.com/overview/Course/cs253/CourseRev/apr2012">Web Application Engineering</A>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   352
  course at <A HREF="http://www.udacity.com">Udacity</A> is a good starting point 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   353
  to be aware of the issues involved. This course uses <A HREF="http://www.python.org">Python</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   354
  To evaluate the answers from the student, Google's 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   355
  <A HREF="https://developers.google.com/chart/image/docs/making_charts">Chart Tools</A>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   356
  might be useful, which ar also described in this 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   357
  <A HREF="http://www.youtube.com/watch?v=NZtgT4jgnE8">youtube</A> video.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   358
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   359
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   360
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   361
  <B>Skills:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   362
  In order to provide convenience for the lecturer, this project needs very good web-programming skills. A 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   363
  <A HREF="http://en.wikipedia.org/wiki/Hacker_(programmer_subculture)">hacker mentality</A>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   364
  (see above) is probably very beneficial: web-programming is an area that only emerged recently and
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   365
  many tools still lack maturity. You probably have to experiment a lot with several different
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   366
  languages and tools.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   367
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   368
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   369
<li> <H4>[CU6] Implementation of a Distributed Clock-Synchronisation Algorithm developed at NASA</H4>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   370
  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   371
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   372
  <B>Description:</B>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   373
  There are many algorithms for synchronising clocks. This
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   374
  <A HREF="http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20120000054_2011025573.pdf">paper</A> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   375
  describes a new algorithm for clocks that communicate by exchanging
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   376
  messages and thereby reach a state in which (within some bound) all clocks are synchronised.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   377
  A slightly longer and more detailed paper about the algorithm is 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   378
  <A HREF="http://hdl.handle.net/2060/20110020812">here</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   379
  The point of this project is to implement this algorithm and simulate networks of clocks.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   380
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   381
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   382
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   383
  <B>Literature:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   384
  There is a wide range of literature on clock syncronisation algorithms. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   385
  Some pointers are given in this
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   386
  <A HREF="http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20120000054_2011025573.pdf">paper</A>,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   387
  which describes the algorithm to be implemented in this project. Pointers
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   388
  are given also <A HREF="http://en.wikipedia.org/wiki/Clock_synchronization">here</A>.
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   389
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   390
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   391
  <p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   392
  <B>Skills:</B> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   393
  In order to implement a simulation of a network of clocks, you need to tackle
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   394
  concurrency. You can do this for example in the programming language
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   395
  <A HREF="http://www.scala-lang.org/">Scala</A> with the help of the 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   396
  <A HREF="http://akka.io">Akka</a> library. This library enables you to send messages
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   397
  between different <I>actors</I>. <A HREF="http://www.scala-lang.org/node/242">Here</A> 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   398
  are some examples that explain how to implement exchanging messages between actors. 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   399
  </p>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   400
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   401
</ul>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   402
</TD>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   403
</TR>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   404
</TABLE>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   405
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   406
<P>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   407
<!-- Created: Tue Mar  4 00:23:25 GMT 1997 -->
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   408
<!-- hhmts start -->
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   409
Last modified: Wed Sep 12 16:30:03 GMT 2012
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   410
<!-- hhmts end -->
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   411
<a href="http://validator.w3.org/check/referer">[Validate this page.]</a>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   412
</BODY>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   413
</HTML>