two common si algorithms