Search found 96 matches

by kenbrooker
Wed Jan 30, 2019 8:59 pm
Forum: Programming languages
Topic: Learning HTML & CSS...
Replies: 0
Views: 51

Learning HTML & CSS...

If interested, Geeks4Geeks today announced a free, online tutorial, in a one-week format,
by which to learn HTML and CSS at:

https://www.geeksforgeeks.org/introduct ... st-1-week/
by kenbrooker
Mon Jan 28, 2019 7:22 am
Forum: Recreational
Topic: Suggest me a book
Replies: 13
Views: 3513

Re: Suggest me a book

So happy to see my name disappear as "LAST POST"er on several topics...
Otherwise I look like a... Conversation Killer... :(
by kenbrooker
Thu Jan 24, 2019 4:28 am
Forum: News, Suggestions, and FAQ
Topic: Weird runtime behavior
Replies: 8
Views: 1091

Re: Weird runtime behavior

Final (Anti-Climactic) Report: The "Original" and "Improved" codes find the 10 millionth prime number (179,424,673) in 3,929 and 3,928 seconds, respectively; so, at least the "All New and Improved" code is not slower(!!) but, it's not exactly "Improved" either; and, still being surprised only shows...
by kenbrooker
Wed Jan 23, 2019 8:27 pm
Forum: Recreational
Topic: Suggest me a book
Replies: 13
Views: 3513

Re: Suggest me a book

Thanks elissasmart , and Great books on the... Limits of Math: Godel's Proof by Ernest Nagel and James Newman with a new Foreword by Douglas Hofstadter 2001 :D :D :D :D :D A World Without Time - The Forgotten Legacy of Godel and Einstein by Palle Yourgrau 2005 :D :D :D :D When Einstein Walked with G...
by kenbrooker
Wed Jan 23, 2019 7:11 am
Forum: News, Suggestions, and FAQ
Topic: Weird runtime behavior
Replies: 8
Views: 1091

Re: Weird runtime behavior

Thanks! rayfil ... "Assuming" I understand you right: 1) In the "Original" algorithm I was disregarding further processing of all even numbers, but only at the expense of first executing "else if(i % 2 == 0) return false;" for every even number, which, though relatively quick, I'm sure (You are way...
by kenbrooker
Tue Jan 22, 2019 6:13 pm
Forum: News, Suggestions, and FAQ
Topic: Weird runtime behavior
Replies: 8
Views: 1091

Re: Weird runtime behavior

Thanks LilStalker...

I agree the discrepancies are small but they are still in the Dead Wrong Direction to my way of thinking...

As you suggest I will try longer runtimes, possibly requiring BigInteger...
by kenbrooker
Tue Jan 22, 2019 6:45 am
Forum: News, Suggestions, and FAQ
Topic: Weird runtime behavior
Replies: 8
Views: 1091

Re: Weird runtime behavior

I've noticed from time to time in the past that my RunTimes have counterintuitively increased rather than decreased. In checking out the RoseCode WebSite, via their Problem #1, I have experienced it again and, even in this very simple, straightforward example, I can't figure out -- Why? Here's the ...
by kenbrooker
Mon Jan 21, 2019 9:35 pm
Forum: Recreational
Topic: A puzzle
Replies: 2
Views: 92

Re: A puzzle

Thanks for the introduction to
RoseCode (and WeChall)!!
by kenbrooker
Sat Jan 12, 2019 10:35 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 196
Replies: 34
Views: 8673

Re: Problem 196

There are indeed 19, if that helps...

oops - Was confirming that
with the Reply box open
while jaap replied...
by kenbrooker
Thu Jan 10, 2019 6:45 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3010

Re: Code optimization techniques

Final Report on my goal of an automated Stack History for Fibonacci by Memoization, the complication for me being Memoization's use of a "lookup" table or cache, and I wish to first thank MHealy and v6ph1 without whose generous insight I'd still be struggling late into the night(s)... Outputting on...
by kenbrooker
Sun Jan 06, 2019 1:35 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3010

Re: Code optimization techniques

PROGRESS REPORT: Reminder -- My final goal is an automated Stack History for Fibonacci by Memoization but... For the simplest Fibonacci by Recursion -- int fib(int n) { if (n <= 1) return n; else return fib(n-1) + fib(n-2); } As a first step toward a Stack History, simply inserting System.out.print...
by kenbrooker
Fri Jan 04, 2019 12:44 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3010

Re: Code optimization techniques

Finally, a BRIEF Post to confirm my progress toward an automated Stack History -- I'm confident that the correct Stack History looks like this -- STACK: (Top to the Right) ******* m(45) m(45)1, m(9) returns 27 m(45)1 m(45)2, m(27) m(45)2, m(27)1, m(5) returns 15 m(45)2, m(27)1, m(45)2, m(27)2, m(15...
by kenbrooker
Thu Jan 03, 2019 9:01 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 027
Replies: 15
Views: 3830

Re: Problem 027

If I understand your question, I know proof by example is not a proof but
I, for one, only find one solution for |a| < 1000 and |b| <= 1000
(in 8 seconds)... Hope that helps...
by kenbrooker
Thu Jan 03, 2019 2:56 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3010

Re: Code optimization techniques

Excellent Idea!! v6ph1 ... The evidence was there all along and I changed my code accordingly and your annotations in red are most clear and helpful... I'm hoping it's still possible to write code to generate the exact same lengthy Stack History that you kindly provided... So far I'm fairly success...
by kenbrooker
Wed Jan 02, 2019 2:36 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3010

Re: Code optimization techniques

Dear v6ph1 ... Sincerest thanks for your conspicuous patience in replying with such clarity, via precision, in such a necessarily long reply and, no doubt, with 100% accuracy... I guess I was fooled by my "printFun" and PE517 examples into thinking that, with sufficient print statements, I could tr...
by kenbrooker
Tue Jan 01, 2019 1:00 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3010

Re: Code optimization techniques

Happy New Year and Muchas Gracias :D MHealy ... I was afraid I might have offended you or discouraged you, but you were commendably reading up on what I must study next re Stacks... Thanks for the Wiki link (at odds, I see already, with Geeks for Geeks)... And to answer your kind question -- Yes, yo...
by kenbrooker
Mon Dec 31, 2018 2:45 pm
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3010

Re: Code optimization techniques

MAYBE it starts out like this -- PRINTED CALLED lookup[] ****** ******** Fib(5) local n initialized to 5 and Statements 3 to 0 pushed on stack & Statement 0 true and Fib(4) called by Statement 2 and +Fib(3) pushed on stack by Statement 2 [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1] Fib(4) local n initi...
by kenbrooker
Sun Dec 30, 2018 11:03 pm
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3010

Re: Code optimization techniques

Well, I guess I'm feeling stubborn on my 71st Birthday (Geriatric Immunity-eligible?) and not yet ready to abandon my (Robotic) approach to mapping a recursion, specifically re the Stack... I think we would both arrive at exactly the same "Stack Map" for my printFun example, several Posts above, and...
by kenbrooker
Sun Dec 30, 2018 5:15 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3010

Re: Code optimization techniques

Ohhh... Thanks Again!! and I was TOTALLY Kidding about brevity...
I don't think you rambled at all but then again,
You Level 17s have a High Standard...
:D
by kenbrooker
Sun Dec 30, 2018 4:38 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3010

Re: Code optimization techniques

Gee MHealy ... Couldn't you be... Briefer?! Just kidding!! Look at the two lengthy Posts I inflicted upon you and I am amazed at your Patience, Speed, "Depth" of Reply, and SUPER Kindness, e.g. "not quite correct"... :-D Well, my first impression is that I wasn't even close to understanding the Sta...