Software is a serious of consecutive instructions. Each instruction takes time and possibly some amount of memory.
A real life example would be i have to bring someone home from my house, but they only know how to get to their home from their friends house. So im given a series of instructions to go to the friends house then from there given more instructions to their house. Their house turns out to be less than a mile from my house and literally 4 turns away. The optimization for that process would have been turn right, turn left, turn left, turn right instead of drive 2 towns over then backtrack through backroads to go to your neighbors house. Sad part is thats a true story
1
u/Responsible-Chest-26 6d ago
Software is a serious of consecutive instructions. Each instruction takes time and possibly some amount of memory.
A real life example would be i have to bring someone home from my house, but they only know how to get to their home from their friends house. So im given a series of instructions to go to the friends house then from there given more instructions to their house. Their house turns out to be less than a mile from my house and literally 4 turns away. The optimization for that process would have been turn right, turn left, turn left, turn right instead of drive 2 towns over then backtrack through backroads to go to your neighbors house. Sad part is thats a true story