Thoughts of a geek

18 February 2013

String colouring

Filed under: Maths — Tags: , — qwandor @ 8:08 am

One of my colleagues has an interesting combinatorial problem, perhaps the mathematically-minded among you might be interested to think trying to find a solution:

“I’m trying to work out the minimum size of a colouring of strings on a finite ordered alphabet, as follows.

Let Q be the set of integers from 1 to q, {1,…,q}

We consider all strings of length n on Q represented as path graphs with labelled edges:

Let G be the set of all qn path graphs consisting of n+1 nodes and n edges where there is an edge between node ni and ni+1 for each i = {1,…,n} and each edge is labelled with a integer from Q.

For any two nodes e and g on a graph in G, let max(e,g) be the highest label on the path between e and g.

Each node x in each graph in G is assigned a colour colour(x) from a set of colours C such that the following constraint holds:

For any pair of colours (a,b) from C, there is an integer f(a,b) in Q, such that whenever a and b appear on a graph in G, say colour(x) = a and colour(y) = b, then max(x,y) = f(a,b).

Question:

  • If q is constant, what is the minimum size of C?
  • What is the minimum number of colours I need to colour there graphs so that the maximum label between a pair of colours is always the same?

So far, I’ve manage to bound the minimum size of C between O(nq) and Ω(n logn). ie. O(nq) colours are sufficient but it can’t be done with fewer than Ω(n logn) colours.

Can you

  1. Show that there is a colouring of size O(n logn) or
  2. Come up with a higher lower bound? For example, show that a colouring has to be at least say 0.5n0.5q to respect this constraint

This problem has ratifications on unsolved problems in complexity theory related to the complexity of parity games and modal mu.”

Any thoughts? It has been far too long since I have done any real maths.

13 May 2008

Essay writing as graph traversal

Filed under: Maths, University — Tags: , , — qwandor @ 2:17 pm

As one of the assignments for COMP425 (Computational Logic) we have to write an essay about ‘logic and computation’. We were discussing this in class yesterday, and it was suggested that essay writing is essentially graph traversal (or perhaps flattening). I wonder how true this is.

3 July 2007

Fourier’s Song

Filed under: Humourous, Maths — qwandor @ 5:41 pm

This is brilliant: Fourier’s Song

Integrate your function times a complex exponential
It’s really not so hard you can do it with your pencil

It can be a little hard to make out what he is singing, so I suggest reading the words as you listen to the song.

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 757 other followers