Login

Welcome, Guest. Please login or register.

October 19, 2025, 05:34:28 pm

Author Topic: Help me interpret this funny Maths thing  (Read 2462 times)  Share 

0 Members and 1 Guest are viewing this topic.

squance

  • Guest
Help me interpret this funny Maths thing
« on: August 14, 2008, 06:54:37 pm »
0
This is for an engineering assignment...and I don't understand it at all...

Its related to huffman coding



where n is the number of symbols
wi is the probability of the symbol i
and lenghth(ci) is the number of bits in teh codeword for symbol i


say i got n = 7
wi=0.222
length (ci) is 2


Can someone please explain to me how to put the figures in that formula above...its so hard to understand...



excal

  • VN Security
  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 3490
  • Über-Geek
  • Respect: +21
Re: Help me interpret this funny Maths thing
« Reply #1 on: August 15, 2008, 02:08:01 am »
0
I'll have a look at this tomorrow :)
excal (VCE 05/06) BBIS(IBL) GradCertSc(Statistics) MBBS(Hons) GCertClinUS -- current Master of Medicine candidate
Former Global Moderator

squance

  • Guest
Re: Help me interpret this funny Maths thing
« Reply #2 on: August 15, 2008, 04:24:39 pm »
0
I'll have a look at this tomorrow :)

Lol i just wanted to know how to interpret this..and how to plug in numbers...

Mao

  • CH41RMN
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 9181
  • Respect: +390
  • School: Kambrya College
  • School Grad Year: 2008
Re: Help me interpret this funny Maths thing
« Reply #3 on: August 15, 2008, 04:31:26 pm »
0
(Image removed from quote.)

where n is the number of symbols
wi is the probability of the symbol i
and lenghth(ci) is the number of bits in teh codeword for symbol i


say i got n = 7
wi=0.222
length (ci) is 2

there's not enough information given. In this case, you have 7 symbols, hence you would have a probability relating to each, and a length related to each symbol

the "i" is just an index so you can differentiate between symbol 1 and symbol 2. the i by itself in fact doesn't have any meaning [other than to mean "a particular thing"]

the formula basically mean, for each "i" multiply the length by the probability. Add this up for all "i"s to get L(C)

expanding this formula:
Editor for ATARNotes Chemistry study guides.

VCE 2008 | Monash BSc (Chem., Appl. Math.) 2009-2011 | UoM BScHon (Chem.) 2012 | UoM PhD (Chem.) 2013-2015

excal

  • VN Security
  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 3490
  • Über-Geek
  • Respect: +21
Re: Help me interpret this funny Maths thing
« Reply #4 on: August 15, 2008, 04:36:44 pm »
0
(Image removed from quote.)

where n is the number of symbols
wi is the probability of the symbol i
and lenghth(ci) is the number of bits in teh codeword for symbol i


say i got n = 7
wi=0.222
length (ci) is 2

there's not enough information given. In this case, you have 7 symbols, hence you would have a probability relating to each, and a length related to each symbol

the "i" is just an index so you can differentiate between symbol 1 and symbol 2. the i by itself in fact doesn't have any meaning [other than to mean "a particular thing"]

the formula basically mean, for each "i" multiply the length by the probability. Add this up for all "i"s to get L(C)

expanding this formula:


Yeah, that's exactly it.

Basically, it finds the expected bit length of codewords in the symbols.

You'll need distinct values for each element of 'w' and 'c', as they are an array of values (of length 7, as n = 7).

Basically (assuming your given values of and ):













...




« Last Edit: August 15, 2008, 04:43:06 pm by Excalibur »
excal (VCE 05/06) BBIS(IBL) GradCertSc(Statistics) MBBS(Hons) GCertClinUS -- current Master of Medicine candidate
Former Global Moderator

Collin Li

  • VCE Tutor
  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 4957
  • Respect: +17

squance

  • Guest
Re: Help me interpret this funny Maths thing
« Reply #6 on: August 15, 2008, 10:52:44 pm »
0
Thank you so much guys!!!!
I now understand! (but why do they have to represent it in a funny way with that funny e sign? it makes dummies like me feel even more dummier...)

/0

  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 4124
  • Respect: +45
Re: Help me interpret this funny Maths thing
« Reply #7 on: August 15, 2008, 11:26:21 pm »
0
'Sigma' is the Greek S and stands for 'Sum'. That's why it's most appropriate to use that symbol. The numbers above and below are simply the lower and upper bounds of summation, analogous to what you would see in integration. It makes writing large (and even infinite) sums significantly simpler.

Mao

  • CH41RMN
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 9181
  • Respect: +390
  • School: Kambrya College
  • School Grad Year: 2008
Re: Help me interpret this funny Maths thing
« Reply #8 on: August 16, 2008, 12:45:54 am »
0
mathematicians are lazy

is a shorthand way of representing

similarly, you may encounter this

Editor for ATARNotes Chemistry study guides.

VCE 2008 | Monash BSc (Chem., Appl. Math.) 2009-2011 | UoM BScHon (Chem.) 2012 | UoM PhD (Chem.) 2013-2015

squance

  • Guest
Re: Help me interpret this funny Maths thing
« Reply #9 on: August 16, 2008, 09:46:17 pm »
0
mathematicians are lazy

is a shorthand way of representing

similarly, you may encounter this



Eww!! I don't like symbols like that...they just confuse me even more!

Mao

  • CH41RMN
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 9181
  • Respect: +390
  • School: Kambrya College
  • School Grad Year: 2008
Re: Help me interpret this funny Maths thing
« Reply #10 on: August 16, 2008, 10:51:44 pm »
0


(incidentally, this is also "10!")

maybe these symbols are a bit more friendly :P
Editor for ATARNotes Chemistry study guides.

VCE 2008 | Monash BSc (Chem., Appl. Math.) 2009-2011 | UoM BScHon (Chem.) 2012 | UoM PhD (Chem.) 2013-2015

excal

  • VN Security
  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 3490
  • Über-Geek
  • Respect: +21
Re: Help me interpret this funny Maths thing
« Reply #11 on: August 17, 2008, 12:25:15 am »
0
You thought that one was nasty? Try this one:



Fun statistics. You'll find stats (i.e., 'Quantitative Methods') littered with these kinds of summation equations.
« Last Edit: August 17, 2008, 12:26:57 am by Excalibur »
excal (VCE 05/06) BBIS(IBL) GradCertSc(Statistics) MBBS(Hons) GCertClinUS -- current Master of Medicine candidate
Former Global Moderator

Ahmad

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1296
  • *dreamy sigh*
  • Respect: +15
Re: Help me interpret this funny Maths thing
« Reply #12 on: August 17, 2008, 12:37:42 am »
0
Concrete Mathematics has a superb treatment of sums (among other things) for those interested.
Mandark: Please, oh please, set me up on a date with that golden-haired angel who graces our undeserving school with her infinite beauty!

The collage of ideas. The music of reason. The poetry of thought. The canvas of logic.


xox.happy1.xox

  • Guest
Re: Help me interpret this funny Maths thing
« Reply #13 on: August 17, 2008, 08:11:13 pm »
0
 :-\ Maths is hard