CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - objective c
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Compress-Decompress algrithms
STL
Data structs
Algorithm
AI-NN-PR
matlab
Bio-Recognize
Crypt_Decrypt algrithms
mathematica
Maple
DataMining
Big Data
comsol
physical calculation
chemical calculation
simulation modeling
Search - objective c - List
[
Data structs
]
huffman
DL : 0
一份huff_tc.c,只能在tc下运行,因为加入了用tc图形界面直观画出树形的代码。一份是huff_vc.c,是在vc和tc下都能运行的程序,没有直观表达编码的树形结构。 [目的] 构建所输入符号(及权值)的哈夫曼树,并利用该树求出各符号的编码,深入理解最优二叉树的概念及其特性。 [问题描述] 读入各个符号及其权值,求各符号的哈夫曼编码。 [基本要求] (1)读入各个符号及其权值,建立哈夫曼树; (2)利用建立的哈夫曼树对各符号进行编码,输出编码结果。 [选做内容] 将所建立的哈夫曼树以直观的方式(树或凹入形式的表)显示。 -huff_tc.c, can only run at tc, because using the add tc intuitive graphical interface to draw tree code [Objective] To construct the input symbols (and the right value) of the Huffman tree, and use the tree to derive the coded symbols, in-depth understanding of the concept of optimal binary tree and its characteristics. [Problem Description] read into the various symbols and their weights, and Huffman coding of the symbols. [Basic requirements] (1) read into the various symbols and their weights, Huffman tree set up (2) the use of the Huffman tree for the set up of the symbol encoding, output encoding results. [Does the content of the election] will be set up by the Huffman tree to intuitive way (tree or indentations in the form of the table) shows.
Date
: 2026-01-08
Size
: 3kb
User
:
李霄逍
[
Data structs
]
dmp
DL : 0
虽然方式的C + +消息传递速度快于Smalltalk或Objective - C的它的方式,有时Smalltalk或Objective - C语言的灵活性是必要的。这一点本文介绍如何在C + +最少的代码实现动态消息传递是有可能的。 -Although the way C++ does message passing is much faster than the way Smalltalk or Objective-C does it, sometimes the flexibility of Smalltalk or Objective-C is required. This little article shows how it is possible to achieve dynamic message passing in C++ with minimum code.
Date
: 2026-01-08
Size
: 2kb
User
:
huyg
[
Data structs
]
complex
DL : 0
一、实验名称:Complex类的运算符重载 二、实验目的:这个实验题目的主要目的是让同学们掌握c++运算符重载的用法 三、实验内容: 编写一个Complex类,需要完成的运算符重载有: (1) + :重载+,用来完成两个复数的加法; (2) -:重载-,用来完成两个复数的减法; (3) *:重载*,用来完成两个复数的乘法; (4) <<:重载<<,用来输出一个复数,输出的格式为(a + b * i),其中a为实部,b为虚部。-First, the experiment name: Complex class operator overloading Second, the purpose of the experiment: The main objective of the experimental subject is to enable students to grasp c++ operator overloading usage of three experimental content: write a Complex class, complete operator overloading are: (1 ) PPLS: PPLS overloaded, used to complete the addition of two complex numbers (2)-: overloaded- for performing subtraction of two complex numbers (3)*:* overloaded for performing two complex multiplication (4) < < : < < overloaded, the output format is used (a+ b* i), where a is the real part, b is the imaginary part of a complex number output.
Date
: 2026-01-08
Size
: 234kb
User
:
刘微笑
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.