<< Chapter < Page Chapter >> Page >

Semi-predictive approach

Recall that a context tree source is similar to a Markov source, where the number of states is greatly reduced. Let T be the set of leaves of a context tree source, then the redundancy is

r | T | ( r - 1 ) 2 log n | T | + O ( 1 ) ,

where | T | is the number of leaves, and we have log n | T | instead of log ( n ) , because each state generated n | T | symbols, on average. In contrast, the redundancy for a Markov representation of the tree source T is much larger. Therefore, tree sources are greatly preferable in practice, they offer a significant reductionin redundancy.

How can we compress universally over the parametric class of tree sources? Suppose that we knew T , that is we knew the set of leaves. Then we could process x sequentially, where for each x i we can determine what state its context is in, that is the unique suffix of x 1 i - 1 that belongs to the set of leaf labels in T . Having determined that we are in some state s , Pr ( x i = 0 | s , x 1 i - 1 ) can be computed by examining all previous times that we were in state s and computing the probability with the Krichevsky-Trofimov approach based on the number of times that the following symbol(after s ) was 0 or 1. In fact, we can store symbol counts n x ( s , 0 ) and n x ( s , 1 ) for all s T , update them sequentially as we process x , and compute Pr ( x i = 0 | s , x 1 i - 1 ) efficiently. (The actual translation to bits is performed with an arithmetic encoder.)

While promising, this approach above requires to know T . How do we compute the optimal T * from the data?

Tree pruning in the semi-predictive approach.
Tree pruning in the semi-predictive approach.

Semi-predictive coding : The semi-predictive approach to encoding for context tree sources  [link] is to scan the data twice, where in the first scan we estimate T * and in the second scan we encode x from T * , as described above. Let us describe a procedure for computing the optimal T * among tree sources whose depth is bounded by D . This procedure is visualized in [link] . As suggested above, we count n x ( s , a ) , the number of times that each possible symbol appeared in context s , for all s α D , a α . Having computed all the symbol counts, we process the depth- D tree in a bottom-top fashion, from the leaves to the root, where for each internal node s of the tree (that is, s α d where d < D ), we track T s * , the optimal tree structure rooted at s to encode symbols whose context ends with s , and MDL ( s ) the minimum description lengths (MDL) required for encoding these symbols.

Without loss of generality, consider the simple case of a binary alphabet α = { 0 , 1 } . When processing s we have already computed the symbol counts n x ( 0 s , 0 ) and n x ( 0 s , 1 ) , n x ( 1 s , 0 ) , n x ( 1 s , 1 ) , the optimal trees T 0 s * and T 1 s * , and the minimum description lengths (MDL) MDL ( 0 s ) and MDL ( 1 S ) . We have two options for state s .

  1. Keep T 0 S * and T 1 S * . The coding length required to do so is MDL ( 0 S ) + MDL ( 1 S ) + 1 , where the extra bit is spent to describe the structure of the maximizing tree.
  2. Merge both states (this is also called tree pruning ). The symbol counts will be n x ( s , α ) = n x ( 0 s , α ) + n x ( 1 s , α ) , α { 0 , 1 } , and the coding length will be
    KT ( n x ( s , 0 ) , n x ( s , 1 ) ) + 1 ,
    where KT ( · , · ) is the Krichevsky-Trofimov length  [link] , and we again included an extra bit for the structure of the tree.

Questions & Answers

what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
What would be the best educational aid(s) for gifted kids/savants?
Heidi Reply
treat them normal, if they want help then give them. that will make everyone happy
Saurabh
What are the treatment for autism?
Magret Reply
hello. autism is a umbrella term. autistic kids have different disorder overlapping. for example. a kid may show symptoms of ADHD and also learning disabilities. before treatment please make sure the kid doesn't have physical disabilities like hearing..vision..speech problem. sometimes these
Jharna
continue.. sometimes due to these physical problems..the diagnosis may be misdiagnosed. treatment for autism. well it depends on the severity. since autistic kids have problems in communicating and adopting to the environment.. it's best to expose the child in situations where the child
Jharna
child interact with other kids under doc supervision. play therapy. speech therapy. Engaging in different activities that activate most parts of the brain.. like drawing..painting. matching color board game. string and beads game. the more you interact with the child the more effective
Jharna
results you'll get.. please consult a therapist to know what suits best on your child. and last as a parent. I know sometimes it's overwhelming to guide a special kid. but trust the process and be strong and patient as a parent.
Jharna
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Universal algorithms in signal processing and communications. OpenStax CNX. May 16, 2013 Download for free at http://cnx.org/content/col11524/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Universal algorithms in signal processing and communications' conversation and receive update notifications?

Ask