what is the general idea of this algorithm for example if I have an array s={3,4,8,5,7,2} with weight for each is w={1,2,3,4,5,6} how the algorithm will calculate the median weight? it could be by sorting or by using linear-time media.

  • What is "this algorithm"? Do you ask readers to explanation a algorithm known to you or do you ask readers to find that algorithm for you? If it is the former, please add a url or reference to that "weighted median algorithm". – Apass.Jack Dec 1 at 17:56

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.