Response to the following problem:
Encode the following sequence using the LZ77 algorithm: ba rraya rbba rbbybba rraya rbbay
Assume you have a window size of 30 with a look-ahead buffer of size 15. Furthermore, assume that C{a) = 1, C{b) = 2, C{b) = 3, C{r) = 4, and C{y) = 5.
Make sure you use enough details to support your answer.