Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Other
Title: Huffman Download
 Description: Repair Ranch: Ranch farmer to repair a section of the fence, he measured the fence, found necessary N block of wood, each piece of wood is an integer of length L i of length units, so he bought a very long, can sawn N wood block, ie the length of the wood is the sum of L i. But he did not saw the farmer, asked people to sawing wood proportional to the length of this remuneration with wood. For simplicity, may wish to set remuneration equal to the length of sawing wood. For example, to a length of sawn wood 20 of a length of three sections 8,7 and 5, the first 20 takes sawing wood, the wood sawn 8 and 12 the second sawing wood takes 12, a length of 12 wood sawn 7 and 5, the total cost of 32. If the first 5 to 15 and sawn wood, sawing wood spent the second 15, the total cost of 35 (greater than 32). Please write a program to help farmers calculate sawn wood will spend a minimum of N blocks. First, enter a positive integer N (N≤10 4), N represents sawn wood to block. Then given N positiv
 Downloaders recently: [More information of uploader 圈圈]
 To Search:
File list (Check if you may need any files):
 

Huffman
.......\Huffman.cbp
.......\Huffman.depend
.......\Huffman.layout
.......\bin
.......\...\Debug
.......\...\.....\Huffman.exe
.......\main.cpp
.......\obj
.......\...\Debug
.......\...\.....\main.o
    

CodeBus www.codebus.net