Showing posts with label igm. Show all posts
Showing posts with label igm. Show all posts

September 22, 2009

one big continuous clap

when you go to a u2 concert, and bono tries to get everyone to clap in unison, you end up thinking about acoustic properties of the stadium and sound deterioration as a function of distance and volume, right?

premise:
they begin to play "bloody sunday" and bono makes the whole "everyone clap like me" motions. as usual, most fans aren't really that coordinated, coupled with the confusion of seeing him clap at one rate, hearing him clap at another interval, and everyone else around you smelling like beer, it takes quite a bit of time for the group to settle into a groove.
while the relative chaos ensues, i begin to wonder if i can, similar to focusing on someone speak whispering sweet nothings at a loud bar, tune everything else out and zero-in on clapping patterns that aren't made intentionally. with enough tries, i can hear even subdivisions, but not much else.
by the time i try to hear triplets the clapping is now reaching me more or less in unison, with a little fuzziness before and after when i perceive the clap to occur, sort of like
f(x) = | sin(x) |

then i noticed that as my neighbors clapped louder my task became much much harder, which made me switch my alter my train of thought (and this is all during the intro of the song mind you, because rachel gave me a, "please tell me you've heard of this song your face looks so lost" kind of look)

i began wondering given the appropriate acoustics, how many people would you need to arrange so that if they all clapped once at the same time (perhaps on a global countdown or coordinated via electric shock or something) that i would be able to hear continuous, same-volume sound for n seconds.

things to think about:
  • what kind of volume deterioration are you going to get out of the clap or sound? ie what kind of rate do sounds lose volume as they travel in the air?
  • this is probably impacted by altitude (let's to go denver! think john elway vortex football)
  • how loud are the people in the back going to need to be, how soft are the people right next to me going to be?
  • do i need to pack people in to try to get a close to continuous function of clapping? or can i just sparsely arrange people?
  • does the formation of the clappers matter? straight line (doppler effect) or should they spiral out away from me?
  • will i need to account for sound waves interfering with each other?
  • should i be using a different sound like an "aaah" or "beeep" or an explosion?
  • am i going to need to have problems achieving the volume necessary at larger distances?
  • how do we convince that many people to participate in this study/event?

[edit: people at work began to tear this train of thought down claiming
  • the clap is too noisy to really be that good of a sample sound to try and repeat
  • you wouldn't really be able to get much continuous sound at gillette stadium (roughly only 1/5s given sufficiently loud clapping at the far ends)]
  • you'd need another U2 concert to test out my theory
further thoughts for achieving 1s of continuous sound:
  • you can obviously do the calculation using the speed of sound to determine that you'd need someone roughly 1100ft away. so that's a problem already
  • to be sufficiently loud that you're the same volume at 3 football fields away as the person standing next to me is going to be pretty tough
  • directional vs non-directional sound and volume over distance?
  • i think U2 won't do another concert here for a while

August 17, 2009

is anything really possible?

so my club ultimate team just won our leagues end of season tournament, and there was a recurring theme in our huddles/prep-talks and such: this whole concept of "giving 110%"

now my inner geek compelled me to incite some friendly discussion, constantly stating that 110% is impossible, which normally got the response, "anything's possiblllleee!"

orly?

it seems like there are really a few ways that you can achieve the fabled 110%
  • there being a competition in which you give N% and your competitor is at (N-110)% so that your relative effort is 110%
  • have your reference point be fairly conservative, like running 110% faster than mikey or being 110% uglier than your mom.
  • being kevin garnett
  • slacking off during the calibration phase of your experiment so "100%" is easy to achieve.
  • pretty much as long as you frame your phrase with enough qualifiers that give people a frame of reference w/which to measure percentage, you should be good.
  • however the 110% absolute percent is still not possible.
another interpretation (it's all in the semantics) is possibly just giving someone 110% of the desired amount
  • think about gratuity at a restaurant
  • too much attention (stalker, much?)

July 27, 2009

no, there wasn't a "mr inner geek moment"

for some reason in that epic car ride back from wildwood the dvorak keyboard came up.
rein's deli ->
rachel's grandmother being an amazing jewish baker ->
her also being a typist in a typing farm back in her day ->
typing words per minute ->
is that even possible with old typewriters ->
QWERTY vs DVORAK.
this whole trace led me to think about a quote from arunas, one of the instructors at the YSP. if you were to look back far enough, the young scholar's program at uofc was one of the most influential forces in my life. in terms of a) nurturing my inner geek, b) introducing me to ultimate frisbee, c) made me decide to go to chicago for undergrad. and honestly most of my IGMs are a reference or anecdote to my time there.

one summer in 9-10, arunas is talking about the chinese remainder theorem and deadpan-ly credits it to "mr chinese remainder." it's really subtle and only a few people actually pick up on the joke. he's poking fun at how lots of theorems in math are just named after the person who discovered it (or made the conclusion famous.) think about people like fermat's last theorem, euler's theorem, stuff like that.

either way, when QWERTY and DVORAK came up, people wondered if maybe the dvorak keyboard was named because the top six letters were actually d-v-o-r-a-k or not. i was convinced that it was in fact mr dvorak.

to go a step further than one would normally in their right mind, i am starting to wonder how many other things that are now common place items are actually just the name of the person that invented or popularized them.
i'm having trouble finding others, but imagine if there was a "mr douchebag" that actually caused the term, or if bacon was because of mr bacon!

so how do you correctly boil an IGM?

spent the weekend on the jersey shore playing ultimate. had a great time at the tournament, very laid back, great weather, close to the ocean. not much more you could ask for, except a shorter drive maybe. although the drive was great, highlighted with us throwing a donut into another car at ~65mph. on our drive home (which takes ~7hours or so + stops) i remembered a whole section from the 'scientific visualization' class i took at chicago.

an ancient proverb or something asks the question "what is the correct way to boil a frog," knowing that if you put the frog into already boiling water, it would just jump out. barring clever usage of a lid or something, you want to put the frog into luke warm water, and then proceed to boil the water. the thinking is that the rate of change of the water's temperature is low enough that the frog doesn't notice that it's in a pot of boiling water. presto!

that assertion is the basis of this IGM. it had to do with rate of change thresholds of our senses at which they register as a noticeable change. this thought process was triggered by driving from the mid-afternoon, through dusk and into night. anyone else that has done that also probably experiences this phenomena when it 'feels' like it's still pretty light outside and then it's quickly night time and you wonder how the hell that happened.

a quick googling has failed to give me the actual numbers, but i remember some hand-waved number that our mind doesn't really register a change in light brightness that are < 10% over some period of time. your eyes detect the change, that's not the problem, but your mind doesn't go 'oh man where the hell did all the brightness go!' what that happens. instead that happens when you finally ~reset your mental light brightness gauge and then look back at the sky.

anyone know of any other similar sensory/non-sensory rate of change threshold type of scenarios? the other one that i recalled was in the IGM laden movie Sneakers. the motion detector ignored anything that moved slower than like 2in/s or something ridiculous like that. temperature is also an obvious one, if anyone has taken a bath and the water suddenly becomes really cold, not noticing that it has been cooling off the whole time.

a possible opposite is "what things have slow enough sampling rates that you can sneak in a whole bunch of change and not fire quickly enough to save you?" i'm thinking about someone that stuffs themselves really quickly with food before their belly hits the stretch/fullness threshold and tells them that they should stop eating.

July 08, 2009

drafting a draft about drafting

so i have been watching a lot of tour de france, and the thing that really amazes me is the reported 30% energy savings for a rider that is drafting. i totally can understand the physics behind this. i remember the vortex/drafting concept from my animal locomotion class at chicago. what i begin to wonder, is what non-sport related activities do people draft in? i guess to find the correct analogy, when do we take advantage of the wake left behind our "competitors?"

other "real world" opportunities to draft:
  • settlers of catan - you always want to be second place, have everyone gang up on the other dude and then slyly steal longest road and win!
  • having pregnant/married siblings or cousins - way to dodge that parental pressure
  • getting through crowded areas - a la Die Hard 3 (w/the ambulance and taxicab) or walking through a state fair or something.
any more?

May 27, 2009

solubility in parts

so i was out at the newbury st tea-luxe drinking some masala chai w/rachel and i had an interesting question that neither of us really new the answer to. i had a lot of high school chemistry theories but nothing really substantial.

while drinking tea, you end up disolving molecules (like sugar) into the water. at a certain point the water could become saturated, at which point additional sugar stays in a solid form. the tipping point at which this happens (iirc) can be observed through titration protocols, or possibly calculated using some stoichiometry equation. there was a point at which we ran out of one type of sugar and rachel switched to another, making the comment "this could be different/better sugar anyways."

it got me wondering, is solubility of multiple types of solids in the same body of water associative? or in other words:
can you compute solubility of water + sugar0 + sugar1
as simply as
(water0 + sugar0) + (water1 + sugar1) ?
i'm wondering if there are other factors involved in this equation, like maybe:
  • the order/amount that you add each solute
  • any characteristics or interactions ocurring between solutes
  • of course there are things like temp, pressure. pH?
  • any others?

April 23, 2009

solving UHAUL

a few of my friends have moved in the past few weeks, and this has sparked an interesting discussion in my head. like any other task, my mind constantly searches for the optimal solution. because of this, i thoroughly enjoy cramming boxes of different shapes and sizes into a UHaul truck, attempting to fit as much as possible in one go. sound like a familiar problem?

enter KNAPSACK. a common cs problem that seems very similar. a brief translation to this problem would be: given my possessions (the items,) and the UHaul truck (my knapsack,) maximize the amount of stuff i can cram into the truck.

however this variation has a few curveballs:
  • in KNAPSACK, items are usually just real numbers, here they are objects with a volume.
  • this means that you could have a subset whose overall size is the largest w/o surpassing the volume of the truck, but you are now confronted with the task of actually finding an orientation of the items in container that actually fits everything.
  • not only do you have volume, but i think shape might be a pretty weird variable in the item set.
  • you realistically want to value/prioritize which items you must include like your bed or dresser or tv.
  • at a certain point, if not all possessions can be fit in the container at the same time, the problem shifts from maximizing usage to minimizing the number of containers needed to consume all items.
  • you normally are doing things in a pipeline manner, (sorting, packing into boxes, moving boxes into truck.) so you might not have the omniscient view of all items as you start to pack the truck, and ymmv based on when you see certain items. this throws the traditional dynamic programming approach out the window.
so we can try to simplify this problem a little bit before trying to solve it:
  • confine all items to be rectangular prisms
  • maybe even start with 2D (packing rectangles,) which i want to dub PLANTING for maximizing crop sections in the fields.
have you noticed i really enjoy citing cs problems in ALL CAPS?

April 05, 2009

how many wrongs make a right?

i was chatting with my sister one day about the concept of inner geek moments, and it reminded me about the concept of being wrong repeatedly. we are all familiar with the phrase "two wrongs do not make a right." but i think there is actually a very common scenario to contradict this.
most people studying linguistics know about the concept of "the evolution of a language." i use it all the time when i make up words that strictly aren't a part of english but people listening know exactly what i am talking about. eventually the term or noun becomes used by a larger portion of the population, and in extreme cases will get entered into the OED. more commonly, the word will live on in urban dictionary.

current words looking to make it big:
so just think about it children: if you want to make it in the world of literary legitimacy, all you need to do is be wrong long enough and enough supporters thinking you are right.

March 30, 2009

discrete mountains, continuous functions?

One of the first inner geek moments recorded in the wild occurred in Montserrat Spain. If you are ever in the area and have a daytrip to spare, I highly recommend it. Not only is it a monastery in the mountains of features one of the few idols of a black virgin Mary as well as a fairly nice boys choir, they have a fairly fun set of hiking trails. Somewhere in the middle of things, we're probably deep into the part where we lost the trail and are bopping around in some random monk's digs. My mind starts going, and I remember a little trick from YSP back in Chicago.
The day starts with us reaching the base of the mountain at 10am. We hike up and down the mountain. There are switchbacks and sometimes we pick the wrong trail. It makes no difference what path we take, really. We ultimately get just short of the summit and setup camp for the night. We decide that we want to see the sunrise from the peak so we wake up at 6am the next day and hike to the top, where we relax, have breakfast, snap a picture, and make our way back down the mountain.
Rachel overlooking Montserrat

Continuing back down, we take a similar meandering path. Stop to pose for a picture, detour to escape a bear, we might have even left our camera at the top and had to have backtracked to retrieve it. After a grueling day of hiking, we stop at the gift-shop, buy a lousy t-shirt and then ride the tram back down into the city.

The geeky part of this that you can prove that with 100% certainty that there exists at least one time of day for which you were at the exact same altitude on both halves of the trip. More explicitly, there exists a time t in [00:00-23:59] such that f_0(t) = f_1(t) if f_i are functions of your altitude on the respective days of the hike.

Not convinced? Here are a few more clues:
We know that since we started our trip and ended our trip in the same place, so
f_0(00:00) = f_1(23:59)
We also know that we spent the night up in the mountain, so
f_0(23:59) = f_1(00:00)
The kicker is now that both functions f_0 and f_1 are continuous. There was no spot in time that we magically jumped altitudes, it was hectic, scattered even, but continuous nonetheless. Graphing these two functions on top of each other will show you that there is some value of t for which the two functions intersect. Bingo!
For further coolness, you can apply this same argument to the world and weather. One can easily accept that temperature when graphed out is also continuous. This allows me to say:
There exists at least one place (actually an uncountable number of places) for which the temperature at that location and the exact opposite, going through the center of the earth is the same.

March 28, 2009

everyone get in alphabetical order!

we are all familiar with this task; taking an unsorted list and returning a copy sorted by some comparator is something we do in life all the time, as well as one of the most discussed topics in computer science with respect to algorithm cost and complexity. as with many inner geek moments, the question, "is there an optimal solution to this problem?" comes to mind.

when dealt a hand of cards, most people will perform some version of INSERTION SORT. in comparison to other methods of sorting, it's pretty bad (worst case O(n^2) even). luckily a person's actions are weighted very differently from a computers. comparing two (or lots) of elements has almost no cost relative to the amount of time it takes to actually rearrange the cards in their hand. (this is actually one of the reasons that i don't rearrange my cards when playing spades!) this makes insertion sort more along the lines of hO(n) - human O, the rate of growth for a human performing the algorithm.

to further show the difference between O and hO algorithms, see how long it takes you to perform MERGE SORT on a bunch of cards and see how much longer it takes.


another very interesting modification to this scenario is the end of recess in gradeschool. all of the kids get in line, but the teacher tells them to get into alphabetical order. instead of the teacher making comparisons and telling students to move around in line, the sorting happens sort of like this: each student looks at the person in front or behind and they make the decision, "should we switch places." keep doing this until everyone is happy.

as an exercise for my readers (i have readers?!) how much faster is this approach? would you model kids' behaviour differently?