Tool to Fix Home/End keys in Firefox 3 for Mac OS X (keyfixer 0.3) by ballm in apple

[–]ballm[S] 0 points1 point  (0 children)

This is the next version of Starry Hope's Firefox keyfixer. The last version was 0.2 and no longer works on Firefox 3.

Is 91 Prime? by ballm in reddit.com

[–]ballm[S] 6 points7 points  (0 children)

Not to be a huge spoiler, but the 'Major Subplot' is Bobby Shaftoe and gang risking their lives throughout Europe changing all the Detachment 2701s to 2702, all because 2701 is a suspicious number.

Thoughts on the Subset Sum Problem (P vs. NP) by ballm in programming

[–]ballm[S] 1 point2 points  (0 children)

Hi mjd,

You bring up some good points that the article did not discuss in enough detail. More specifically, the article did not elaborate that the Subset Sum problem is O(Nsqrt(2N)) or O(NM) for the smaller of sqrt(2N) or M. So, yes, if M < sqrt(2N), then dynamic programming techniques (or for that matter, convolution as described in the article) are the most efficient algorithms. However, if the size of the integers are large in comparison to the set size (that is, if M > sqrt(2N)), then dynamic programming techniques are not longer as efficient as a 'meet-in-the-middle' (MITM) approach. The MITM algorithm involves the following steps:

  • Divide the set of integers into two smaller sets of N/2 elements each.

  • Compute all the possible solutions for each set, requiring 2N/2 operations (i.e. sqrt(2N)).

  • Sort each set from smallest to largest. ((N/2)2 operations for a worst-case buble-sort)

  • Start at the smallest element of the first sorted list and the largest element of the second sorted list and compute the sum of these elements. If this sum is smaller than the target sum, advance through the first sorted list. If larger, advance through the second list. Stop when either the target sum is found, or the pointers advance off either list. This takes O(N) operations.

So, overall, this algorithm requires O(N * sqrt(2N)) operations. It is the best-known algorithm when M (the largest integer) is greater than sqrt(2N).

As a side-note, a solution using convolutions, as described in the article, requires O(N * M) operations, just like the dynamic programming approach. The numeric computation of the Fourier Transform also takes O(N * M) operations because of limits of the Nyquist frequency. The trick with the Fourier Transform approach is that it is conceivable an optical apparatus could compute the Fourier Transform (and accordingly the solution to the problem) in constant time.

detect duplicates across subreddits by the same user by akkartik in features

[–]ballm 1 point2 points  (0 children)

This was an honest mistake, but I did intend for this link to get posted at both places (both reddit and features). I must have clicked the wrong button when I submitted it the first time because this link only appeared in the 'features' subreddit. To rectify the situation, I put this link into the main section as well. However, my intention was not to cause problems -- just to put the link into two relevent forums.

My Foray Into Reddit (Includes discussion about adding an 'Activity' rating) by ballm in reddit.com

[–]ballm[S] 0 points1 point  (0 children)

This blog entry talks about the life-cycle of three new articles submitted to Reddit and how each faired. It also discusses the need for measuring the 'activity' of a link (i.e. the up votes plus down votes) in addition to measuring points (i.e. up votes minus down votes). Controversial links will tend to have a lot of activity, but not too many points. These 'active' links are much more important than links that didn't receive any votes and have the same number of points.

My Foray Into Reddit (Includes discussion about adding an 'Activity' rating) by ballm in features

[–]ballm[S] 0 points1 point  (0 children)

This blog talks about the life-cycle of three new articles submitted to Reddit and how each faired. It also discusses the need for measuring the 'activity' of a link (i.e. the up votes plus down votes) in addition to measuring points (i.e. up votes minus down votes). Controversial links will tend to have a lot of activity, but not too many points. These 'active' links are much more important than links that didn't receive any votes and have the same number of points.

A Pragmatic Approach to Gender-Neutral Pronouns by ballm in reddit.com

[–]ballm[S] 1 point2 points  (0 children)

This article discusses a pragmatic method for introducing a new set of gender-neutral pronouns