StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...

Data Structures and Algorithms - Essay Example

Cite this document
Summary
The data structure should be in a position to support every one of the operations listed above. The common schemes that ADT is expected to include are: the arrays, list of children, Child-Sibling representation.
Huffman Code is normally looked at as a prefix code…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER95.7% of users find it useful
Data Structures and Algorithms
Read Text Preview

Extract of sample "Data Structures and Algorithms"

Download file to see previous pages

while((read = from.Read(buffer, 0, _bufferSize)) > 0) { // Write the buffer (what was actually read) to the output stream huffman.Write(buffer, 0, read); } } } /// Compress a stream of data to an output stream. /// The input stream to be compressed. /// A stream of compressed data. /// /// Compression begins at the current position in the input stream. /// The resulting stream's position is at the end of the current data. /// public static MemoryStream Compress(Stream s) { // Create a new memory stream to hold the compressed data MemoryStream ms = new MemoryStream(); // Compress from s to ms Compress(s, ms); // Return the compressed stream after resetting its position to the beginning return ms; } /// Compress an array of bytes using adaptive Huffman compression.

/// The bytes to be compressed. /// The compressed bytes. public static byte [] Compress(byte [] bytes) { // Create a new memory stream to hold the input uncompressed bytes // and one to hold the output compressed bytes MemoryStream from = new MemoryStream(bytes); MemoryStream to = new MemoryStream(); // Compress from input to output Compress(from, to); // Get the compressed bytes and return them return to.ToArray(); } #endregion #region Decompression /// Decompress a stream of input data to an output stream.

/// The stream containing the data to be decompressed. /// The stream to which the decompressed data should be written. /// /// Reading and writing begins. And therefore, this might be comfortable for usages connected with textual data. Where there is image related data, the exercise might become pretty cumbersome and might not be possible to realize both the spatial and spectral data to be brought under the Huffman Code compression technique. In order to increase the efficiency of coding even while using the text compression techniques.

For this purpose a semi Adaptive Huffman code is practiced to increase the efficiency of the work. Adaptive Huffman coding technique is used to further enhance the efficiency of the compression techniques in realizing smaller file sizes.

...Download file to see next pages Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Data Structures and Algorithms Essay Example | Topics and Well Written Essays - 1000 words”, n.d.)
Data Structures and Algorithms Essay Example | Topics and Well Written Essays - 1000 words. Retrieved from https://studentshare.org/technology/1506711-data-structures-and-algorithms
(Data Structures and Algorithms Essay Example | Topics and Well Written Essays - 1000 Words)
Data Structures and Algorithms Essay Example | Topics and Well Written Essays - 1000 Words. https://studentshare.org/technology/1506711-data-structures-and-algorithms.
“Data Structures and Algorithms Essay Example | Topics and Well Written Essays - 1000 Words”, n.d. https://studentshare.org/technology/1506711-data-structures-and-algorithms.
  • Cited: 0 times

CHECK THESE SAMPLES OF Data Structures and Algorithms

Algorithm Visualization

Some studies have shown that there is no significant difference between traditional and animated approach while some studies have shown that algorithm visualizations can indeed improve understanding of the fundamental Data Structures and Algorithms.... Perhaps the authors expected that the interest in the subject have generated a wealth of literature and a good number of animated algorithms.... ParadigmThe researchers join in the shift of paradigm from traditional teaching to animated algorithms though not in a direct manner....
12 Pages (3000 words) Book Report/Review

Object Oriented Programming

Data Structures and Algorithms in Java.... In object –oriented programming, the… These data elements are modeled as classes and they are active entities that can manipulate the data contained in themselves and in other classes.... Finally, the system behavior is modeled after the interactions of these data items of the of the of the Object Oriented Programming Object oriented programming is a programming methodology, where data and its interactions are of central focus rather than processes....
1 Pages (250 words) Essay

Data Structures and Algorithm Applications in Social Media

This essay "Data Structures and Algorithm Applications in Social Media" discusses how the choice of Data Structures and Algorithms affect social media.... The choices applied in the selection of Data Structures and Algorithms determine whether a particular calculation will be carried out in many days or in just a few seconds.... This calls for a keen choice of Data Structures and Algorithms.... nbsp;… data structures are the registers and memories in a computer, whilst algorithms are the pieces of information stored in the structures (Wirth, 1984)....
7 Pages (1750 words) Essay

Data Structures and Algorithm Lesson Plan

• Demonstrate ability to make oral presentations Materials: Textbook: Data Structures and Algorithms Analysis in C by Mark Allen Weiss Introduction to Algorithms, Second Edition By Thomas H.... hellip; The student will be expected to write a short description of what they understand by data structures and Algorithm field....
6 Pages (1500 words) Essay

Creation of a Data Structure

The paper 'Creation of a Data Structure' focuses on data structures implementation which requires the help of programs.... Contrary to traditional ways of understanding the data structures, which rely upon the static examples and textbook diagrams provide some aspects of the execution of a program.... It is learned that how data structures are created by using computers.... Before the reading of data structure and algorithm, a mental picture about storing the data structure is perceived differently from real storing of data structures....
6 Pages (1500 words) Case Study

Matrix Project

In this application, the algorithms are described below:Thus, in case the matrices X and Y are not square matrices, there will be a need to fill the missing columns and rows with zeros.... This report "Matrix Project" focuses on a program that enables basic matrix arithmetic operations....
5 Pages (1250 words) Report

Educational Timetabling Algorithms and Data Structure

As the paper "Educational Timetabling algorithms and Data Structure" outlines, in the past decade, empirical tools made evolutionary progress to solve many databases' design problems, such as simulated annealing, tabu search, ant colony optimization, and genetic algorithms (Alsmadi et al....
21 Pages (5250 words) Literature review

Information System in Information Technology

… The paper "Information System in Information Technology" is a good example of an assignment on information technology.... nbsp;Information systems have a direct link with the objectives of a business.... They enable the organization to attain operational effectiveness that entails the efficiency and effectiveness of the business operations....
9 Pages (2250 words) Assignment
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us