Please turn JavaScript on

Yet Another Math Programming Consultant

Is this your feed? Claim it!

Publisher:  Unclaimed!
Message frequency:  0.25 / week

Message History

In this post, I want to delve further into sorting. In a question on or.stackexchange.com [1], the subject was minimizing the number of swaps in sorting algorithms. A swap, i.e., an interchange of two items, is a basic operation in sorting. We usually don't pay much attention to this. First, we assume swaps are cheap. If they are not, we can sort not the real data (which can be ...

Read full story
Clock problem

From [1]:


href="https://blogger.googleusercontent.com/img/a/AVvXsEiXkMetvMSwcmJ-s3HgaCFB2zm_D3PV9z6SIWUBZxzsZHhjfRegkh43IGuc2pL3bACa2OAwFL5iTXp9hpiipZAShhAveamqCd57jY5FvXDgCGnaXNk50AnM75Kfp0uH75xfh05ULjQBlDoAQ84JO1ZW_Ad3hR-8KjH1LnecHGlrKuMS9hnRGEpUcj5HyEFe" style="margin...

Read full story
diag(x)

When using \({\bf diag}(x)\) in a text, there is always the nagging feeling that there must be a nice way to express this in standard matrix algebra (i.e., some combination of identity matrices, all-ones vectors, and standard matrix multiplications). To remind ourselves, the \({\bf diag}(x)\) function creates a diagonal matrix with \(x_i\) as diagonal elements: \[{\bf diag}(x) =...

Read full story
Read full story
Read full story