Jump to content
  • Advertisement
Sign in to follow this  
MrDoDo

Need help understanding Math notation

This topic is 3615 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm sorry if this is more apt in the math section but I couldn't be sure. I'm working on a project and it involves implementation of a frequency algorithm in O(n). I've come accross a paper I'm very interested in, but my math is speckled, and I just don't know how to interpret this: |K| Where K is a set of individual, distinct symbols. Worth noting is that there is an array of integers which essentially holds a 'count' for each of these symbols. I've tried searching I really have but find nothing concise. Everything at my disposal points to magnitude, which doesn't really apply. As far as I can see. The paper in question can be found at http://www.cs.umd.edu/~samir/498/karp.pdf

Share this post


Link to post
Share on other sites
Advertisement
For sets |K| would be the size of the set K. i.e. the number of elements inside it. Having glanced over the paper this certainly seems to be the case here.

Share this post


Link to post
Share on other sites
In general, |x| is used to denote the size of x. So |x| for reals is the absolute value, |x| for complex numbers is the length, |x| for vectors is also the length (using whatever length function is assumed by default), and |x| for sets is the cardinal (that is, the number of elements, or an infinite cardinal set).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!