Community

Looking for a challenging algebra text? Preparing for MATHCOUNTS or the AMC exams?
Check out Art of Problem Solving's Introduction to Algebra by Richard Rusczyk.
Login Register Memberlist Search AoPS Blogs Contests Galleries Forum Index
The time now is Fri Dec 04, 2009 4:26 am
All times are UTC - 8
View posts since last visit
View unanswered posts
Kraft inequality
Moderators: High School Olympiad Moderators, darij grinberg, freemind, Megus, N.T.TUAN, orl, pbornsztein
Post new topic   Reply to topic View previous topicView next topic
3 Posts • Page 1 of 1
Author Message
ilyasu1
P versus NP
P versus NP

Offline
Joined: 03 Jun 2004
Posts: 36

To rate posts you must be logged in
#1
Kraft inequality
Makcay, Information theory

For each i \in \{1,\ldots,n\} you are given a binary string b_i of lenght l_i.

Let C(a_1,\ldots,a_k) = b_{a_1}\cdot b_{a_2} \cdot\ldots\cdot b_{a_k}, where
\cdot stands for concatenation, k is arbitrary and 1\leq a_j \leq n.

Prove that if C is injective then \sum_{i=1}^n \frac 1 {2^{l_i}}\leq 1.

The solution is nice and not hard.

PostPosted: Mon Feb 28, 2005 4:21 pm  Back to top 
  ProfilePMICQ
Myth
Birch & Swinnerton Dyer
Birch & Swinnerton Dyer


Offline
Joined: 02 Sep 2003
Posts: 4490
Location: Chelyabinsk, Russia
Russian Federation

To rate posts you must be logged in
#2
I have invented a stupid solution.
Let f_s be a number of different strings C(a_1,\ldots,a_k) s.t. |C(a_1,\ldots,a_k)|=s. We have f_s=\sum_{i=1}^n f_{s-l_i}. We know that f_s=\sum_{j=1}^{d} a_j\lambda_j^d. Since f_s\leq 2^s we conclude |\lambda_j|\leq 2 for all j. But numbers \lambda_j are roots of characteristic equation P(x)=x^d-\sum_{i=1}^n x^{d-l_i}=0, where d=\max l_i. Therefore, P(2)\geq 0 (otherwise the equation has a root >2). But P(2)\geq 0 means \sum_{i=1}^n \frac 1 {2^{l_i}}\leq 1.
_________________
Myth is out of here

PostPosted: Tue Mar 01, 2005 8:24 am  Back to top 
  ProfilePM
ilyasu1
P versus NP
P versus NP

Offline
Joined: 03 Jun 2004
Posts: 36

To rate posts you must be logged in
#3
Yea, looks like you are right.

The solution I have is almost the same but in a different shell:

If S = \sum_{k=1}^n 2^{-l_k}, then
S^N = \sum_{1 \leq b_1,\ldots,b_N \leq n } 2^{-(l_{b_1}+\cdots+l_{b_N})} = \sum 2^{-i}f_i.

Each term in the last sum is less than 1 (2^i are all binary strings and f_i is merely a subset of them) and the total number of terms is at most N\cdot \max l_i. So S^N is bounded by a linear function which can only be if S\leq 1.

PostPosted: Wed Mar 02, 2005 4:56 pm  Back to top 
  ProfilePMICQ
Display posts from previous:   Sort by:   
3 Posts • Page 1 of 1
Post new topic   Reply to topic View previous topicView next topic
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
You cannot post calendar events in this forum


© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us