Showing posts with label Research. Show all posts
Showing posts with label Research. Show all posts

Friday, September 11, 2009

A Random Idea in Rags..! :)

Using Randomness to Achieve a Controllable Behaviour..?! :)

Phew..!!


It so happened, that, yesterday evening, out-of-the-blue... my dear friend & colleague Krishna Melkote asked me if we could design a kind of
throttling algorithm, without having to worry about state-information ( such as a COUNT of how many requests have been let-through, etc..)..

He wanted the ONLY piece of state to be the "throttle-factor"..!!


Me moron..did NOT get his point..! :-(

But thankfully, he went on to patiently explain with an example that if say, this factor is 70, then it should in effect,"let-through" ONLY about 70% of the requests, & "
block" the rest..!

But this, he wanted to achieve without having a count of the number of requests that have been let-in, queue-ing them up somewhere, etc..!


This led me into wondering about the use of Random-numbers...& arranging stuff such that we obtain a component, whose ONLY responses are from the set {YES,NO} ....(or {TRUE, FALSE} or whatever u want..! :) )...but it should say YES/TRUE, roughly t% of the time, where, t=throttling factor... an integer in the closed-interval of [0,100]

And when i casually simplified it in my funny style & discussed it with Rasna, another very good friend of mine, she suggested a very simple (fer her ! Though me-MORON took a minute to see her point..!! :)) method...which turned out to be a very beautiful algorithm that surprisingly ( For me..! :) ) seemed to take care of all the boundary conditions..!!
{ i.e., when t=0(ALL NO/FALSE) &/or t=100(ALL YES/TRUE) }

Basically, the algorithm (
algoP()) uses an array which has t% of YES/TRUE, & the rest as NO/FALSE...So, assuming we now index into this array with truly-genuine RANDOMness(!?! :) ), we must have a t% chance of being let-through..!! :)

But as it always turns out, me-MORON had goofed up implementing that algorithm, & that forced me to also go through with my algorithm, which does NOT make use of any extra-storage/structures...but somehow, manages to DO the Same task..! :)


PheW..!!


Anyway,
PLEASE Click here for the CODE--try it with boundary conditions & switch between algoRags( ) & algoP( )...!! :)

Note:
the application where i Have shared code... is a cool Ruby-on-Rails app..! :) This episode, has really made me CRAZY about the queer phenomenon of Randomness..??
  • WHAT is meant by a Random-sequence..?
  • Is Randomness ALL/ONLY in the Mind..?(Like most of the things..?! hehehe..! :)) i.e., if I cannot Predict a given sequence's future..then, is it truly Random ??( or jusst being too complex-ly Computed underneath...like OLL our Congruence-modulo Linear or Quadratic Pseudo-random Number generators..?!? :) )
Hmmmmm..!!

That is a very interesting thing to ponder over..!!


Anyway, what a RANDOM thing that me stumbled upon this problem & somehow managed to do something about it too..
!?!?!(with sheer Random-ness !! hehehe)

Ha ha ha ha ! :)))

THANK s a LoT to ALL my Dear ones for bearing with me..& also helping me..! :)

With Lots of LOVE & Thank & Cheers..

(Not!?!?!?! :)) Random-ly yours...











The boy in "rags"

------------------------
Finally, to Cheer-u-UP...& make you RELAXED..

Here's a superb, naughty
Garfield -strip..to make you SMiLe...fer a WhiLe..! ;) :)
Me reeeeally Loove it, essp Poor Jon-Arbuckle.. :)

Friday, July 24, 2009

Genius, has the courage to be laughed at...!!! :)

Hmmmmmm...!!

As a famous quote goes--
"Courage is Fear that has said its Prayers..."
:- Dorothy Bernard


I have been badly wanting to talk about this crazy person, Mr.Gerolamo Cardano --who I think deserves a special mention for being such a courageous person, bold enough to follow his crazy-hunches about the mysterious field of numbers..!

Please do give me your feed-back on whether I've been successful in presenting the following problem/anecdote effectively..!!

I wanted to describe one specific achievement of his, which exemplifies the sheer Courage of so many great minds in the past, in "standing up, & standing firm" for What one's Heart feels Right, despite the whole world around laughing at the apparent "non-sense" of your ideas...!

This episode has been documented in Cardano's magnum-opus -- "Ars Magna"--(literally, "the Great Art"..!)...

And i decided to try my BEST to really come up with a step-by-step description of the same..!!

Please do let me know how you like(d) it..Will YOU..!?!

I
have long craved for a way to somehow "express" the mad-torrent of colors & ideas & nuggets of anecdotes, etc., with a high-fidelity w.r.t. HOW/WHAT i really "see" or "feel" ...!!

And now, I am finally trying to "get it out"..."Before i Go...!"... :)
[Click on the images below, & let me know WHICH one You like the BEST..!]

Awaiting your reply/feed-back...


With Lots of Love & Best Wishes,



























The boy in "rags",
Planet (H)eart(h)

~~~~~~~~~~~~~~~~~~~~

"Life...is either a daring adventure, or nothing."
:- Helen Keller

~~~~~~~~~~~~~~~~~~~~


__Def :-























__Nat :-























__Pas :-


























$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$



Tuesday, July 7, 2009

i-mORon on OR..!! ;)

i-mORon on OR(Operations Research)..!! ;)

W
ell, well, well..! :)

Finally, I got a "spare"/rare Sunday to "spare" & sat like a lunatic with my laptop & did what me so badly wanted to do..! :)

As my dear friend,mentor & idol Srikanth Seshadri a.k.a "Sriki" :) had discussed recently in his interesting BLOG article, me too was curious to see if my intuitive understanding that the problem he discussed there was simply about finding the Function-Maximum subject to certain "constraints"... was anywhere near being correct...(which is so rare indeed!:)) !

So I really thought about how to apply somethings @ night & devised a plan, & sat about doing it & at the same time writing about it too...!

And as you can see, I've literally strewn my write-up/solution with Crazy Little HEARTS...
( i myself house one..! Ahemm..! ;) )

This is what I call putting HEART(s) into something..hehehe..!!

Anyway, I want you to let me know WHICH of the following you liked the most in terms of COLOR-Combinations, EASE-on-the-EYES, Aesthetics, etc..!!

Hope you liked the clarity of the writing/fonts, the notations, etc..?? :)

Well, all i can say in my style is that i am "nuts" about notations..! ;)

But, now, I feel it pretty much mimicks what my HEART would have liked to see, or what I would have painstakingly written if i could write by hand or on a black/white-board..!? :)

And "ferget" the aesthetics..it actually WORKED you know..!

i.e., my innocent guess about what needed to be done to solve this problem proved right, & hence, luckily, me arrived at the same solution as that discussed in the original blog..!

Hmmmmm...!
ALL thanks to my LUCK, & intuition & the wonderful inspiration provided by my dear dear friends..ALL the time..! :)

And last but not the LEAST, this is thanks to something very VERY Special me Discovered of Late...which will allow me to come up with MANY MANY MANY Such AMazingly COLOUR-ful as well as USEFUL(fer a change. . .!!:) Though some of the most Beautiful things have no apparent USE for us Puny humans..! ) revelations/expositions..!!!

I will devote a lot of space/time in setting about describing this Magical thing that I have stumbled upon SOON..!! :)

Fer now...

Can You Please CLICK on each of the images below & Please LET ME KNOW pa..?!! :)












The boy in "rags"
Planet (H)eart(h)
--------------
AR





















--------------
Nat






















------------
Cor























--------------
SR






















--------------
Pas






















--------------