By reading the title it may sound like a silly question, but I have a data structures exam tomorrow and some formulas I need to know for algorithm analysis are read as (n – floor(log (n + 1)). What is the meaning of floor?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
floor(x)is the largest integer not greater thanx. You can easily find this information on the web, here for example.e.g.
One thing that can confuse people is the floor of a negative value. Some might initially think that
floor(-3.4)is-3when in reality it is-4by the definition offloor(x).As a note,
.
floor(x)is often written as