05-12-2014 06:24 AM
Hi altenbach, thanks for posting the answer. No I did'nt get the answer. I have convinced everyone here that I took effort to do the problems. I even posted the solutions I did so far. I was able to solve the other three questions and also improve them based on suggestions from community members here. But question 1 was too difficult for me even to start with. Each progress towards the solution required me to ask here what I should do next. And still now I couldn't get it done. I am now feeling really bad and I have given up.
Everyone has got some limitations. By the time now, I have proved to you all that I can't solve it anymore on my own and need help. I can see that everyone here agrees that question 1 is a tough one. Only a fully working solution can help me now. What that can now make a diifference is someone willing to post the solution understanding my situation.
Anyways I thank James-B, crossrulz, ToeCutter, johnsold & altenbach for their valuable suggestions.
05-12-2014 01:18 PM - edited 05-12-2014 01:20 PM
Problem 1 has two distinct parts.
#1 is hard unless you do some internet research. I already gave you some links (but you would need to be familiar with e.g. C or ALGOL :o). The algorithm is quite simple and only involves integers. Two stacked FOR loops and a few shift registers is all that's needed. My LabVIEW code is much less than the size of a postcard.
#2 is easy. As a first step you could just get the first 1000 digits from here, use it as a diagram constant, and see what answer you get. Maybe you get partial credit for that. 😉
Just paste the string from the web page, remove all linefeeds (and the decimal point), and convert it into an array of single digits as I explained earlier, truncate to 1000 elements, and find the product.
Good luck.
05-12-2014 01:29 PM
"I am now feeling really bad and I have given up. "
Man up dude- did you manage to implement the string based add function for starters? If not, where are you stuck?
05-12-2014 02:24 PM
Got the same answer as Altenbach; that paper from 1968 is a real winner. And yeah, man, let us know where you got stuck. These kind of problems can be fun when you get them working
05-19-2014 11:05 AM
Hi all, thanks for your interest to help me. I am now little busy seeking a job here in India based on LabVIEW application development. When I am free, I will analyse again from the begining where I am stuck. I am now sure that I will soon solve it since people here are interested to guide me.
Thanks & Regards