Software

Enums

Enumerators are a commonly used data type to map a value to a predefined set of constants. As the data are entered, an integer iterator enumerates the values beginning with 0 in a plus 1 fashion. You can perform if-then-else style operations on enums using switch statements. Furthermore, it is possible to assign additional values

Enums Read More »

Threads

A Java Thread allows for segmentation and parallelization of a task. If using a single machine, threading is a natural option to boost performance. For instance, a quad-core, hyper-threaded computer can support up to 8 threads (though I’d recommend leaving 1 for the system, so 7 max). Each cluster node in contains 32 threads, so

Threads Read More »

Permutations

Generating permutations can be quite tedious, especially when the number is large. The traditional way is to instantiate all at once, then retrieve each when needed. This, however, requires vast quantities of memory for very large sets, thus making them impractical in most research settings. For example, let the character set be the English alphabet

Permutations Read More »