Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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

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
traversing threaded binary trees
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 

see the attached file please

Attachments:

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service