Huffman Encoding: Difference between revisions

From Algorithm Wiki
Jump to navigation Jump to search
(Created page with "== Problem Description== an optimal binary search tree (Optimal BST); sometimes called a weight-balanced binary tree; is a binary search tree which provides the smallest possible search time (or expected search time) for a given sequence of accesses (or access probabilities). Optimal BSTs are generally divided into two types: static and dynamic. == Bounds Chart == 350px == Step Chart == File:H...")
 
No edit summary
Line 1: Line 1:
== Problem Description==
{{DISPLAYTITLE:Huffman Encoding (Optimal Binary Search Trees)}}
an optimal binary search tree (Optimal BST); sometimes called a weight-balanced
== Description ==  
binary tree; is a binary search tree which provides the smallest possible search
time (or expected search time) for a given sequence of accesses
(or access probabilities). Optimal BSTs are generally divided
into two types: static and dynamic.


== Bounds Chart ==
A related problem to the OBST problem is when there is no order between the keys and there are probabilities associated only with the gaps and the objective is to build a binary tree with minimum expected weighted path length from the root. This is called the Huffman Tree Problem
[[File:Huffman_Encoding_&_Optimal_Binary_Search_TreesBoundsChart.png|350px]]


== Step Chart ==
== Related Problems ==  
[[File:Huffman_Encoding_&_Optimal_Binary_Search_TreesStepChart.png|350px]]


== Improvement Table ==
Generalizations: [[Optimal Binary Search Tree Problem]]
{| class="wikitable" style="text-align:center;" width="100%"
 
!width="20%" | Complexity Classes !! width="40%" | Algorithm Paper Links !! width="40%" | Lower Bounds Paper Links
Related: [[Approximate OBST]], [[Alphabetic Tree Problem]]
|-
 
| rowspan="1" | Exp/Factorial
== Parameters ==  
|
 
|
<pre>n: number of elements</pre>
|-
 
| rowspan="1" | Polynomial > 3
== Table of Algorithms ==  
|
 
|
Currently no algorithms in our database for the given problem.
|-
| rowspan="1" | Cubic
|
|
|-
| rowspan="1" | Quadratic
|
|
|-
| rowspan="1" | nlogn
|
|
|-
| rowspan="1" | Linear
|
|
|-
| rowspan="1" | logn
|
|
|-|}

Revision as of 10:21, 15 February 2023

Description

A related problem to the OBST problem is when there is no order between the keys and there are probabilities associated only with the gaps and the objective is to build a binary tree with minimum expected weighted path length from the root. This is called the Huffman Tree Problem

Related Problems

Generalizations: Optimal Binary Search Tree Problem

Related: Approximate OBST, Alphabetic Tree Problem

Parameters

n: number of elements

Table of Algorithms

Currently no algorithms in our database for the given problem.