一、移位操作
1、位运算的规则是对二进制数字进行移位补零操作(高位舍弃,低位补零)
2、位运算符
3、右移一位相当于除2,右移n位相当于除以2的n次方(右移正数补0,负数补1)
4、左移一位相当于乘2,左移n位相当于乘以2的n次方
5、除法的效率比移位运算效率低得多,善于利用移位运算可以大大提升算法效率