Dissimilar Terms

We can rewrite the statement " a a and b b are distinct numbers" into a statement made of just variables and not-equal signs: " a b a \ne b ".

Similarly, we can rewrite the statement " a , b , a,b, and c c are distinct numbers" as " a b c a a \ne b \ne c \ne a ".

Note that " a b , a c , b c a \neq b, a \neq c, b \neq c " is not valid because it is three statements, not one, and that " ( a b ) ( a c ) ( b c ) 0 (a-b)(a-c)(b-c) \neq 0 " is not valid either because it has something other than variables and not-equal signs, which in this case are the parentheses.

In the above two statements, the minimum numbers of not-equal signs ( ) (\ne) used are 1 and 3, respectively.

What is the minimum number of not-equal signs used to rewrite the statement " a , b , c , d a,b,c,d are all distinct numbers" in such a way?

Bonus: Generalize this.


The answer is 7.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Manuel Kahayon
Oct 14, 2016

Relevant wiki: Eulerian Path

Consider a graph with 4 vertices, A , B , C , D A, B, C, D . We are looking for the minimum number of edges with which we can draw its complete graph starting from A A , under the condition that there must exist a Euler Path along the graph. We can see that we need a minimum of 7 7 edges to do this, since the complete graph requires 6 edges, and if 6 edges were to be made, all vertices would be of an odd degree, which makes a Euler path impossible. With 7 edges we can do it, just draw the complete graph and connect A A to B B .

We can see that this condition is similar to the one above. One edge represents one \neq sign, one vertex represents one variable, and we need to make all variables not equal to each other, i.e. we must complete the edges of the graph. A Euler path along the graph is needed, since we need to start, WLOG, from A A and end up with some variable, and since all the variables must not be made equal in one line, we need to have a Euler path which represents the order the variables appear in in the inequality.

A further extension is to determine the number of different ways of doing this e.g.

A B C A D B C D A \neq B \neq C \neq A \neq D \neq B \neq C \neq D and A B C A D C B D A \neq B \neq C \neq A \neq D \neq C \neq B \neq D are distinct.

Sharky Kesa - 4 years, 8 months ago

This is a good start. However, your explanation has a slight gap:

  1. Why do we need "under the condition that there must exist an Euler path"? Isn't it necessary and sufficient that every edge of the complete graph is an edge in this walk/path?
  2. You have not explained why "we see that we need a minimium of 7 edges". In particular, you should show that A) 7 is sufficient, B) 6 is not sufficient.

Keep writing more solutions and you will get the hang of this!

Calvin Lin Staff - 4 years, 8 months ago

Log in to reply

Thanks! I have tried editing the solution.

Manuel Kahayon - 4 years, 8 months ago

Log in to reply

Much better! I see that you clarified my initial 2 points.

More pointers:

  1. I recommend putting the second paragraph first, so that others can understand why we should "consider a graph ...".
  2. Instead of "minimium number of edges", it should be "walk of shortest length that transverses every edge".
  3. Clarify what you mean by " just draw the complete graph and connect A to B". In particular, you should be defining the walk clearly (or at least quoting a theorem that explains why such a walk exists).

Calvin Lin Staff - 4 years, 8 months ago
Mark Hennings
Oct 20, 2016

Suppose we are trying to say " a 1 , a 2 , . . . , a n a_1,a_2,...,a_n are distinct". Consider the complete graph K n K_n , where the vertices are the numbers a 1 , a 2 , . . . , a n a_1,a_2,...,a_n , and an edge between two numbers a , b a,b is represented by the expression a b a \neq b .

We need a path on K n K_n which contains each edge (so that every pair of numbers are made distinct) which is as short as possible. If K n K_n possesses a Eulerian path, then this will certainly have shortest length. If a Eulerian path does not exist, we will need to go over some edges more than once to be able to cover all edges. Put another way, we may need to add extra edges to the graph (so that some pairs of vertices are joined by two or more edges) in such a way that we can find a Eulerian path.

If we consider the complete graph K n K_n with n n vertices, then each vertex has n 1 n-1 edges attached to it.

If n n is odd, then n 1 n-1 is even, and so every vertex of K n K_n has an even number of edges attached to it. Thus a Eulerian cycle is possible on this graph. In this case, it is possible to express " a 1 , a 2 , . . . , a n a_1,a_2,...,a_n are distinct" using ( n 2 ) \binom{n}{2} symbols.

If n n is even, then every vertex of K n K_n has an odd number of edges attached to it. For n 4 n \ge 4 , this means that no Eulerian path is possible. We need to add the smallest number of edges to the graph until we have at most 2 2 vertices with an odd number of edges attached, so that a Eulerian path is then possible. The parity of the "number of attached edges" has thus to be modified for n 2 n-2 vertices. Since K n K_n is complete, we can do this two vertices at a time. Choose any n 2 n-2 vertices, and find 1 2 ( n 2 ) \tfrac12(n-2) edges which join these vertices up in pairs. Add an edge parallel to each of these edges. The result is a multigraph with ( n 2 ) + 1 2 ( n 2 ) = 1 2 ( n 2 2 ) \binom{n}{2} + \tfrac12(n-2) = \tfrac12(n^2-2) edges which possesses a Eulerian path. Since m m edges will adjust the parity of the "number of attached edges" for at most 2 m 2m vertices, it is clear that 1 2 ( n 2 ) \tfrac12(n-2) is the smallest number of edges that can be added so as to perform the necessary parity swaps Thus, in this case, the least number of symbols is 1 2 ( n 2 2 ) \tfrac12(n^2-2) . Note that this expression also gives the correct answer of 1 1 when n = 2 n=2 .

The number of symbols is thus 1 2 ( n 2 n ) \tfrac12(n^2-n) if n n is odd and 1 2 ( n 2 2 ) \tfrac12(n^2-2) if n n is even. This makes the answer to this problem 7 \boxed{7} .

Great generalization!

I love it when "We know it exists, and will not find the explicit structure of it".

Calvin Lin Staff - 4 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...