### algorithm

#### How to “NOT” a register in mips assembly

Since there isn't a NOT logical operator in mips assembly, how can one "not" the contents of a register?

Load -1 into another register, then XOR the registers. https://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Mips/bitwise.html

You can use nor and the zero-register to fit everything into one instruction: nor $<dest_reg> $<in_reg> $zero Another approach would be using xor and -1 as this is encoded as 1111...1111 in 2s-component. li $<help_reg>, -1 # load -1 into help-register xor $<dest_reg>, $<in_reg>, $<help_reg> # actual not-operation

### Related Links

Algorithm to find maximum of combinations of arrays

How Facebook generate unique identifiers

algorithm complexity of a sqrt series

c#/c++ greedy implementation for that kind of algorithm

what is the time and space complexity of this specific algorithm and would that be adequate for the range of input sizes I need to cater for? [on hold]

When and How to run pagerank algorithm in neo4j?

What is the time complexity of following algorithm?

Algorithm - Given a set of pixels with coordinates, how to find all the contiguous lines in an efficient way?

Numbers divisible by $n$ not having the digit $k$ in their representation

ordering nodes for a 2D element

Algorithm to find Articulation points in a directed graph

implement sensitivity for device accel data

Coding: Keep track of last N days of records for each user.

Partitioning a graph into k similar subgraphs

DPLL algorithm procedure

MapKit and latitude longitude edge cases with Map APIs