#How to approach this question in your head in a realistic fashion?
501 messages · Page 1 of 1 (latest)
you realize that a second is 1,000,000 microseconds and all you should expect from this problem are big numbers
it would help if you posted the numbers you did get instead of a blank table
did you fill out the row that just has f(n) = n?
its a baseline
part of the purpose of this problem is to get you to realize what these various complexities end up meaning
they tell you how much slower a program gets if you increase the output
this is roughly like big O, yea
yea
wdym the first one
f(n) = n is the easiest one, not the first one
you dont begin from the top-down unless youre a computer
do you think f(n) = lg n is easier than f(n) = n?
be a human here
you say this like only maths guys do easy things before hard things
look at the table
you need a calculator
you use a calculator
and also, you can write big digits as 10^#
that is not a problem either
...was that your real concern
thats good
did you solve f(n) = n yet?
just the first column?
what about the rest of them?
just post a screenshot of the numbers
dont critique the question, youre saying a lot when you havent shown evidence of completing even the easiest row
please do
youll notice here that the size n matches with the time taken
now the next step is 2^n
youre not making connections yet, just go through the table
2^n is chosen because its easy to put in the calculator, and the numbers get big quick
bro
Im not making you see anything
youre not making connections yet, just go through the table
2^n is not the same thing as 2 * n
and that would be wrong if it was 2 * n as well
please
.
alright?
for reference, you should get n = 19 for the 2^n row, first column
Ill brb
once you fill in the table, tell me if you used a trick or not for the 2^n row, I suspect either you wont because I told you or you adamantly did because I told you
there is a trick, and it involves the f(n) = n row, but make sure its solid beforehand
(its not a very good one)
Ill be back
gl
the numbers you have in the f(n) = n row tell you how many microseconds are in each amount of time
now its relatively simple to start with 1, press * 2 = on the calculator, then continually press = to multiply by 2 many times
its not as simple to count how many times you do so
but by doing this, you can go through all the powers of 2 and compare them with the f(n) = n row
its a very big hint now that I realize it, but youve been at this for 20 minutes
to help with this, 2^10 = 1024 is similar to 1000
so 2^20 = 1048576 is similar to 1 million
if you lose track, you can use powers of 1024 to get back on track
I wouldve seen that pattern at 4am too
it doesnt help that the problem is convoluted
oh right theres also that
but you came in looking for a shortcut
the problem is asking you,
f(biggest n) that is smaller than t
so 2^n < 1 million for the first column to get n = 19
right
yea
3.6 * 10^9, not "with 9 zeroes"
this has 8 zeroes
yea
yea, the e stands for exponent
now I showed you the braindead way I thought you wouldve found staring at this at 4AM
so Ill show a quick way instead
you could do 2^n = 3.6e9
then solve for n
to find the n that gets you that time of 1 hour
(round down if n isnt an integer)
have you heard of "solve for x" before
then you mean "how do I solve for n" right
do you know what a logarithm is
do you know they are the reverse of exponents
2^n = 3.6e9
then you need to reverse 2^ both sides
similar to how for 2 + n = 3.6e9, youd "reverse 2 + both sides" which is to "- 2 both sides"
,align2^n&=3.6\times10^9
\{\color{yellow}\log_2({\color{black}2^n})}&={\color{yellow}\log_2({\color{black}3.6\times10^9})}
\n&=\log_2(3.6\times10^9)
mtt
youre not saying that corresponding_column_of_f(n)=n only just means t_in_microseconds, the only reason Im having you use the f(n)=n was because it already calculated t_in_microseconds in advance to be used for the braindead approach earlier, the row has no other meaning
wait how did you get 3,1104
instead of 12 months, use 365 days
so your times should look like
1 second:t = 1e6
1 minute:t = 6e7
1 hour:t = 3,6e9
1 day:t = 8,64e10
1 month:t = 2,592e12
1 year:t = 3,1536e13
1 century:t = 3,1536e15
now to solve the table, youre supposed to use the equation f(n) = t to solve for n, then round down to the nearest integer because you cant have a non-integer size
so for the 2^n row, you use 2^n = t to get that n = log2(t) then round down to the nearest integer to get:
1 second:n = 19
1 minute:n = 25
1 hour:n = 31
1 day:n = 36
1 month:n = 41
1 year:n = 44
1 century:n = 51
again, the n row mathes the t row because of n = t, but remember that the general process is "f(n) = t" not "f(n) = f(n) = n" (scroll up to see why):
1 second:n = 1e6
1 minute:n = 6e7
1 hour:n = 3,6e9
1 day:n = 8,64e10
1 month:n = 2,592e12
1 year:n = 3,1536e13
1 century:n = 3,1536e15
@teal shale are you with me so far
you chose to type twice as much for a method you deliberately chose to not use
yes, really
at least you werent serious about it
now what time is it on your end
I can tell
now you know that to fill in the cells you begin with f(n) = t then you end with finding n
now to ensure you dont get any wrong ideas, youll still just try to solve f(n) = t normally
yes I did, but as long as all of your ideas are right it'll be worth it
you havent even begun
cant believe this guy
first time Ive seen the "Ive tried nothing and Im all out of idaes" https://www.youtube.com/watch?v=lkKwyjsJGxk
Season eight, episode eight. This is a flashback to Ned's beatnik parents.
in real life
is it discord where your assignment is?
I already told you what youre supposed to be doing and I can see youre still not doing it
do you just want to talk? 🤨
if I were you, Id solve f(n) = t in advance for each row before going through the calculations, so that the hard part is done first
except for n lg n = t and n! = t - those cannot be solved
how do you reverse a lg()?
if you had an "reverse lg", then you could do
wait
@teal shale you here? I need to ask you a qusetion
thats not the question
I need to ask you a different question
how good are you at your algebra
do you understand the basics of algebra?
do you understand why its valid to "do the same thing to both sides" of an equation?
reread what you typed a second time
(you already showed what x is by saying **x = **5 + 4y)
dont bother
what
just dont bother
different teachers have different ways of describing algebra steps
so Ill need to see what language you use instead to solve an algebra problem
say you have 2x + 5 = 10
are you going to describe how you got x = 2.5?
@teal shale no?
were you aware that 2 * 2.5 = 5 at the time?
did it occur to you that you couldve written x = 5/2?
keep in mind you can leave fractions in the answer
you are allowed to just let division be in there
this indicates you dont know a proper method to go through this
so far its "this ought to work" or "this should make sense"
you can solidify this by putting down what you know will always work
do you want to see what's valid for an algebra step?
first, some terms out of the way
in 2x + 5 = 10, the 2x + 5 and 10 are both called "expressions"
this is compared to 2x + 5 = 10, which is called an "equation" for having an = sign
so you have two expressions that can both be a value
for example if x = 3, then the expression 2x + 5 is 11
and the expression 10 is just 10
are you with me so far
youll need to define what an expression is but it should be closed
now in an equation, the left side of the = is usually named the "LHS" for "left-hand side"
the right side of the = is usually named the "RHS" for "right-hand side"
so in 2x + 5 = 10, the LHS is 2x + 5 and the RHS is 10
now let's consider what's valid
an equation of expression = expression should boil down to setting two values equal
for example, 5 = 5 or 7 = 7
do you mean expression1 + expression2 = expression3 or expression1 = expression2 = expression3?
I asked an "or" question
that is also valid
an expression can contain other expressions, just like in programming
its ""recursive""
anyways,
imagine you embed this expression inside another expression, like so:
outer_expression = inner_expression + 4
so 5 = 5 turns into 5 + 4 = 5 + 4
you can see that with the same inner_expression (5), you should have an outer_expression with the same value (9)
this is the general rule
you should always be able to do this
no
I didnt say that
its an assignment
well if its an assignment it should be like expression = expression + 4
so applying the same assignment to both sides should retain that both sides are equal
so the equation 5 = 5 is just as true as 5 + 4 = 5 + 4
yes
now being this general lets you do more general ideas
such as expression = expression * expression + expression
so that 5 = 5 is just as true as 5 * 5 + 5 = 5 * 5 + 5
or in general, L = R is just as true as L * L + L = R * R + R
by beginning with L = R, you assume that they evaluate to the same
so going from L = R to L * L + L = R * R + R is to say
"if L = R, then L * L + L = R * R + R"
does that make sense
now this general idea can be used to convert 2x + 5 = 10 into x = #
the idea is that you layer on moves that "unwrap" the left side
for example, I can expression - 5 both sides
2x + 5 = 10
2x + 5 - 5 = 10 - 5
2x = 5
and then I can expression / 2 both sides
2x = 5
2x / 2 = 5 / 2
x = 5 / 2
this is what I mean by "doing the same thing to both sides"
you are embedding both expressions into an outer expression
a.k.a. using the same assignment to both expressions
a.k.a. calculating the same moves to both expressions
and since the expressions are equal before, they should be equal after
this lets you choose steps that can simplify an expression to be valid and is the intended way to simplify 2x + 5 = 10 to be x = 5/2
are you with me so far
yes
no one ever sees it coming
or they think they do but they dont solidify it
this is why they teach you algebra in school, theres no other way you'd know about this
now lets get to some basics of algebra
its easier to think about if you be specific with some particular valid moves
first, you can
- add the same expression to both sides
- subtract the same expression from both sides
- multiply both sides by the same expression
- divide both sides by the same expression
second, when you have an expression like
2x + 5 = 10, theres only one x to solve for
this lets you go through a method called "isolating x"
2x + 5 is doing "x times 2 plus 5"
you know that - 5ing both sides is valid
2x + 5 = 10
2x = 5
its chosen because - 5 is the reverse of + 5
you also know that / 2ing both sides is valid
x * 2 = 5
x = 5 / 2
its chosen because / 2 is the reverse of * 2
you can see here Im explicitly choosing an expression that reverses the outside, it uses the general rule to unwrap x
(2x is a shorthand for 2 * x, and * is a symbol for multiplication because using x would be confusing with the variable x)
typo, it uses the general rule to unwrap the expression until its only x
now to isolate x, you need to know the reverse of what's on the outside
the reverse of adding 5 is subtracting 5 for instance
and the reverse of multiplying by 2 is dividing by 2
now we can get to solving f(n) = t
how much do you know about inverse functions?
for exponents, there are two different ways to apply a change
the first way is expression^#
the second way is #^expression
theyre both different, they each have an inverse
the inverse of expression^2 is sqrt(expression), also written as √(expression)
the inverse of 2^expression is log base 2(expression)
now previously, you had 2^n = t
you can now look up here to see how to solve for n
"solving for n" means "get the equation to look like n = (an expression not based on n)"
so in general,
,align2^n&=t
\{\color{yellow}\log_2({\color{black}2^n})}&={\color{yellow}\log_2({\color{black}t})}
\n&=\log_2(t)
mtt
you can see that "logging base 2 both sides" is a valid move
and its done as part of the method to isolate n
which is how you solve for n
youre supposed to learn this in school over a couple of years
you know most people are capable of remembering like thousands of words
thats a lot of letters you know
but its not flabbergasting to
youre now seeing the scale of how much you now need to know
if you want to learn algebra, you can go on khan academy and begin from the algebra part
remember to prioritize knowing whats happening beyond knowing how to solve the problesms
yes
this entire problem is algebra
its 8th grade material
none of this is university material
I hope youre aware of that
you've barely begun
you cant say that yet
no Im in college
you need to catch up, you need to go on khan academy as soon as you're done
those problems are easier
and theres a lot of them
for now though, lets consider how to solve for n
as Ive said earlier, you should begin by solving for n in f(n) = t for the rows in advance before entering in the times and calculating them
entering in the times is called "plugging in" or "substituting"
so "plugging in 1.000.000 for t" or "substituting t = 1.000.000" means to do f(n) = 1.000.000
you replace all ts with 1.000.000
f(n) = t
f⁻¹(f(n)) = f⁻¹(t)
n = f⁻¹(t)
do you understand both of these
thats gonna be a no for this question I asked earlier
khan academy has some videos on this
for now though, you have these functions
yea I figured, thats for later on then
in a way you have part of the idea down when you saw 2x + 5 = 10 and you "thought backwards" to get x = 2.5
and similarly when you had 2^n = t and you got the correct values by doing n = log2(t)
so ignoring those,
you need to solve these equations for n:
- lg₂(n) = t
- √n = t
- n = t (already solved)
- n lg₂(n) = t (not solvable)
- n² = t
- n³ = t
- 2ⁿ = t (you solved this, n = lg₂(t) is correct)
- n! (not solvable)
remember that solving for n means you need to do the right things on both sides to change the equation to **n = **(something)
I gave you the rhyme and also the reason
well really all I gave you was the "rhyme" part, the general idea of what you need to to do
unfortunately none of that is present here
that list I gave earlier is just an example list
bro this one, the one you repeated just now
unfortunately none of that is present here
the list I gave earlier is just an example list
but your problems are harder than that
I gave you a more general version of the idea
its one angle
no
one specific angle
idk how you havent seen it yet so dont mention angles for now
anyways
I gave you a more general version of the idea since just doing + - * / wont work
youre allowed to do anything to both sides
no idea what youre talking about
you didnt remember what inverse functions were 🤷♂️ so dont mention angles for now
if you let me finish,
I never said trig you absolute wallnut
youre doing a whole lot of not letting me finish right now
disgusting
so earlier you were able to solve 2^n = t
do you remember how you were able to solve it
thats pretty correct
however it isnt based on algebra
remember that algebra is not only about letters but also about that general idea of doing the same thing to both sides
so taking a look at 2^n = t, what can you do to both sides to turn the 2^n into an n
its almost the only reason you can get anywhere with algebra
do you know what log2(2^n) simplifies to
do you know what logarithms are
yea
so whats log_5(5^2837) then
so whats log_2(2^n)
yea
so in the equation 2^n = t,
can you write out what the equation looks like after you log_2() both sides
write it out like this
what you essentially did was do something to one side but not the other
so thats not correct
I asked you to log_2 both sides
thats both sides of 2^n = t
you were supposed to do
2^n = t
lg(2^n) = lg(t)
n = lg(t)
yea thats the one
so now you see the algebra way of doing this
you began with 2^n = t
you know that since both sides are equal, they should remain equal after you lg() both sides
so if you lg() both sides, you get lg(2^n) = lg(t)
or that n = lg(t)
showing that 2^n = t must mean that n = lg(t)
you realize how easy this sounds if I replace the 2^ and lg with just +3 and -3:
you began with n + 3 = t
you know that since both sides are equal, they should remain equal after you - 3 both sides
so if you - 3 both sides, you get n + 3 - 3 = t - 3
or that n = t - 3
showing that n + 3 = t must mean that n = t - 3
they both use the same idea
arent you in college bro
I said I was in college, Im a freshman
but you dont need to be a college freshman to do this problem
bruh
yea
what country are you if you dont know that word
I have a feeling American english isnt your first language
I dont know any dutch or german so unfortunately itll have to stay that way
until then youre very close to what you can do for the other problems
you have 2^n = t, and you choose to lg() both sides
that choice is because lg() reverses 2^
similar to how - 3 reverses + 3
so now, you need to pick the reverse for each of those equations
and youll be able to solve all of them
(except for the unsolvable n lg n and n!)
I want you to do the algebra first because you can use a braindead approach for factorial
no
remember earlier what the "braindead" approach turned out to be?
youre not going to reverse the factorial with algebra
bruh
you reacted pretty strongly to it
told me it was 4AM
told me it didnt stick
you reacted so strongly that when you woke up the next day and told me something, you used part of the approach
you said f(n) = n instead of just t
I corrected you
remember?
goddamn
colander moment
just pretend we've just begun
lets try to solve lg(n) = t
already numbering how many hints youll need? confident
as an algebra problem, you are allowed to do the same action to both sides
earlier you were able to solve 2^n = t by doing this:
- 2^n = t
- lg(2^n) = lg(t)
- n = lg(t)
dont think that way
no numbers
trust me
what can you do to both sides
to end up with n =
the other side doesnt have a log2, so no
you cant just put a log2 in there either, because that counts as you changing only one side of the equation
what would reverse lg()?
no
so what can you do to both sides
theres a lg() on the left side
if you can reverse that lg(), there wont be a lg() anymore
and itll just be n = instead of lg(n) =
you know that the reverse of lg() is 2^
what
do you know what 2^ means
doesnt it just mean to 2^ something
lg(n) = t
**2^**lg(n) = **2^**t
n = 2^t
I refuse to believe you are this incapable of thinking for yourself
you just said that 2^ and lg() are opposites
they are reverses
so that means doing lg() then 2^ should combine to do nothing
tf does that mean man
I dont want to see you solve a jigsaw puzzle man
I dont even know how much youre getting from this
unless you get whats happening here, you really wont know how this question works
you need to know your algebra
where is this going
its nighttime
bro do you know your timezones
man look
do you want to know whats happening in this problem or not
can you tell me whats happening in the problem then
already we are not on the right track
take a hint
do you want to know whats happening in the entire problem or not
the general idea
if the general idea could be said in a single messge, you'd be done by now
its a yes or no question
then can you fill out the table
then you dont know enough
how about this
you dont sound like youre trying for shit right now
Im trying hard to get you to do this and youre just "ehhhhhhhh"
melting into the ground by this point
Ill make this easy for you
5:21AM man
your Zs are on the line
hurry it up
I didnt say to give it up
it sounds like you dont care about this problem anymore
the problem is essentially useless, youll learn nothing from going through the work to complete it
let me make this easy for you
- lg(n) = t means that n = 2^t
- √n = t means that n = t²
- n = t means that n = t
- n² = t means that n = √t
- n³ = t means that n = ∛t
- 2^n = t means that n = lg(t)
the f(n) = n rows has numbers that match with how many microseconds each t is
put those in for t and calculate those 6 rows
youve already calculated the 2^n row correctly
just finish the numbers on this problem and learn your algebra properly
once youre finished with filling those out, you should have seven rows completed
send a screenshot of the numbers you have, dont just type several dozen numbers as text in the chat
one more thing, you were having the right idea with the factorials, but I was thinking if I got you to do the algebra first, you would have enough brainpower afterwards
if you can, also fill out the factorial row
sure but you havent even done the table yet
using a formula is pre-algebra buddy
you need me to put in the numbers for you too?
if you dont know whats happening in the problem enough to forget how you did your own work, you need to go down to pre-algebra on khan academy
somewhere in there you can learn how formulas work and how to use them
your problem is still unsolved
do you want to see it solved?
no
no
this is very wrong
tell me
what use are tricks if you dont even know whats happening
and how are you going to know whats happening
if you dont have any numerical data?
theres nothing stopping you from just using the formulas and entering in the numbers in the table
this will tell you the behavior of each function
you do not need to wait for the intuition to come to you
the purpose of the problem is to showcase the behavior of each function
by literally having you enter in numbers to simulate how they behave
what do you think tables are used for
gatekeeping because you think you know better on a problem is a fundamental misconception, it gets everyone but you should know not to do it
you havent even seen the completed table yet
how about you see the completed table then say that?
rs this isnt a complicated affair
you just put in 2^(those times) in your calculator
and thats how you fill in the first row
can you do that for me?
show me which calculator youre using
rs you prick
Im not going to even get into what youve just done here
why did you wait until now to reveal to me that the numbers were too big
use scientific notation
and dont copy-paste all of the digits into the chat
I know youre going to do that
copy-paste it into the table
all of them
rs dont you have a google doc to just copy-paste in the numbers
I find it hard to believe youre given a document with this table on it and you have to copy down the table on paper
then you dont need to write a table down on paper
get an online one
use google docs
dont tell me you dont know how to get one of those
google it
going to say this is how you havent gone far in math
look at what you chose to say
didnt even want to hear me out, youre not the arbiter of tabling over here
jk really but math is all about doing things that were impossible before
I only get to be the arbiter if you listen
you dont get to be the arbiter because you never listen
thats the only difference
wait what the fuck
no its online you make a google account
you dont "download google docs"
are you still on your phone?
do you have a computer?
youre not going to type 56 separate boxes with the ios keyboard are you?
you tell me whether you want a shortcut or not because at this rate, the next 20 minutes are going to be you entering in numbers and typing them by hand
youre not going to gain anything if you have to do that, its too tedious to see the picture while youre typing it
you might as well just see the completed table that I can make
@teal shale noticing youre not as adamant about finding shortcuts anymore
you need to get the numbers down before you try to find tricks with anything
you never needed to mess around with all of this
just having the numbers down in a table of any sort is enough
(or you can just ask me to make it for you)
alr
lol thats gonna pale compared to how many numbers you gotta type in
nah you dont
there are shortcuts
but I aint telling you them until after you complete it
first off
no
second off
you can just type that into the table
the number is too big to really get a sense for it
when you put it into wolfram alpha it sends you a 10^10^something
so just 2^1.000.000 is good enough
yea just keep leaving those in there
reasonable
the rows below arent going to go this hard
so this top row will be an exception
it really is
you can see there that you can fit 2^ as many operations
part of the shortcut is in what that really means
its not just "getting a big number out of it," there really are patterns
thats a basic idea but its not going to explain the difference in scale between 2^1.000.000 and 2^60.000.000
thats not correct
you dont do that for exponents
"multiplying by 59.999.999 many 2s" is a beginning way to consider it
the idea behind 2^ is "every time you go up by one, you double"
so going from 1 second to 60 means that you have to double it 60 times
and so logarithmic ones are really good
thats the pattern involved
thats part of the idea
a lot of those kinds of examples are just to contain the growth of 2^ and the similar
the general "y = a^x" are called "exponentials"
they grow really fast, and they grow faster than the other rows in this sheet
(keep in mind by rows I mean the formulas youre using to fill in the numbers, not the expressions on the left column)
alr youre not going to see that in the next row, n = t²
nah the inverse factorial and the inverse n lg n dont appear in the table, for those Ill just tell you how you can do those when all the other rows are filled in
yea it is
yea Im doing it too