If your choices are the following:
The cotton gin
The flying shuttle
The water frame
The shuttle fram
The textile innovation reduced the labor force needed to operate looms by half is The cotton gin. So the answer is the first option.
The present-day civil struggle in Algeria is very complicated and has deep origins, but in general it was political rivalries that were in part set off by colonizers.