The square roots of the integers from 1 to 100, C/C++ Programming

Assignment Help:

Assume we wish to partition the square roots of the integers from 1 to 100 in to two piles of fifty numbers every, such that the sum of the numbers in the first pile is as close as possible to the sum of the numbers in the second pile.  If youcould  use minimum computer time to answer this question, what computations would  you perform on the computer in that time?  

According to problem, sum of square roots in two piles should be as close as  possible. For that we would add square roots of odd numbers. In one pile and square roots of even numbers in another pile. As for natural numbers also if we require to separate into two piles according to nearest equal sum requirement above solution  will work i.e.1+3+......................+99, 2+4+ ..............+100.Square root is a  strictly enhancing function for positive numbers.  So result holds for square root also.

 


Related Discussions:- The square roots of the integers from 1 to 100

C and Data structure, Implement multiple stacks in a single dimensional arr...

Implement multiple stacks in a single dimensional array using c.

In binary mode how can i open a stream?, A: Use std::ios::binary. Some o...

A: Use std::ios::binary. Some operating systems differentiate among text and binary modes. In text mode, end-of-line sequences and perhaps other things are translated; in binary

Command line arguments, i want to check the command line argument is whethe...

i want to check the command line argument is whether an integer or a string

How can we simulate the concept of multiple inheritance, Problem: (a) U...

Problem: (a) Using a class hierarchy of your own choosing, with at least TWO subclass levels, show (i) the use of abstract and concrete forms of Java class and method in you

Linear search in array - c program, Linear search in array - C program: ...

Linear search in array - C program: Write a program in c to define a linear search in array. void main()                 {                 clrscr();

C program for reverse the string , C Program for REVERSE THE STRING #i...

C Program for REVERSE THE STRING #include stdio.h> #include conio.h> #include string.h> void main() {           char name[30];           char *s;

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd