www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS301 Assignment # 04 Solution

Solution

Views: 2402

Attachments:

### Replies to This Discussion

oooooooooo kia confuse kar dia hai fairy app ne

character 34 hain yah 35 ? bta do koi?

yr total 35 character hain (it includes 3spaces and one new line character)

to fairy kia keh rahi hai phir

frequency phir 2 hu gi na nl ki yr is '\$' agay b to aik nl hai na

ye lain g right solution
best of luck...............

Attachments:

yrrrrrrrrrrrr yah to file hi .docx ha...open hi nai ho rahi

wrong solution hai.Agar correct solution nahi de sakti to to wrong b na do.

@ Barbi Doll

BILKUL PAGAL LOG ESAY HI HOTY HAIN

apnay tou total 35 likha hoa ha

...

printf("
Enter the number of elements to sort : ");
scanf("%d",&n);

printf("
Enter the elements :
");
for(i=1;i<=n;i++){
scanf("%d",&a[i]);
restoreHup(a,i);
}

j=n;
for(i=1;i<=j;i++)
{
int temp;
temp=a[1];
a[1]=a[n];
a[n]=temp;
n--;
restoreHdown(a,1,n);
}

n=j;

printf("
Here is it...
");
for(i=1;i<=n;i++)
printf("%4d",a[i]);
}

void restoreHup(int *a,int i)
{
int v=a[i];

while((i>1)&&(a[i/2]<v))
{
a[i]=a[i/2];
i=i/2;
}
a[i]=v;
}

void restoreHdown(int *a,int i,int n)
{
int v=a[i];
int j=i*2;
while(j<=n)
{
if((j<n)&&(a[j]<a[j+1]))
j++;
if(a[j]<a[j/2]) break;

a[j/2]=a[j];
j=j*2;
}
a[j/2]=v;
}

Part d is
Here in the example, we assign a code of our own (i.e. Huffman code) to the letters
that are in the message text. This c
ta
The encoded form of the message is as under
00111000011100101110011101010110100101111001
100111101010000100101010011111000101010110000
10111011111001110101101011110000

plz upload true solution of this assignment<>>>>>>>>>>

cs301+assignment+4+solution+fall2011 Another idea solution

Attachments:

1

2

3

4

5

## Latest Activity

AbdulRabecca liked Hira's profile
3 minutes ago
AbdulRabecca, Sana Shah, Salar khan and 30 more joined Virtual University of Pakistan
3 minutes ago
sweet angel joined + M.Tariq Malik's group

### ENG522 Applied Linguistics

21 minutes ago
37 minutes ago
Sana Shah joined + M.Tariq Malik's group

### CS401 Computer Architecture and Assembly Language Programming

41 minutes ago
Awab Abu Bakar posted a discussion

### How to join Online Session of CS 702?

44 minutes ago
50 minutes ago
Amna Waheed joined + M.Tariq Malik's group

55 minutes ago