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

Programming and solving problems with a computer, One person who is special...

One person who is specialist at programming and solving problems with a computer Project Description: Potential computer, hardware, programming and software genius, I look

Lexicographically preceding permutation, Respected Sir, I want the above wr...

Respected Sir, I want the above written text in a C program

C Program with android, Hello, I would like to know if you can help in C pr...

Hello, I would like to know if you can help in C programs that work on android.

C program for function of copy one string in other string, C Program for FU...

C Program for FUNCTION OF COPY ONE STRING IN OTHER STRING #include stdio.h> #include conio.h> int copy(char a[],char b[]); void main() {           char a[100],b[

Write a program to change the matrix program, Change the matrix program (pr...

Change the matrix program (program 3) slightly. Overload == operator to compare two matrices to be added or subtracted. i.e., whether the column of first and the row of second

Z transformer, how to write code for z transformer

how to write code for z transformer

Explain the relationship between an array and pointers, Relationship betwee...

Relationship between an Array and Pointers. Consider the following. int arr[] = {0,1,2,3,4,5,6,7,8,9}; If we write arr , it is considered as the address of the first elem

What if one can''t wrap the local in an artificial block?, What if one can'...

What if one can''t wrap the local in an artificial block?

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