top of page

What is generalisation?

Another type

There are more than one interpretation as to what generalisation means to computer scientists. One interpretation is that of adapting a solution that solved one problem to solve another. An example is matching pairs to A = B win A ≠ B lose. We could then use generalisation to adapt this solution to produce a program to code a snap game.
 

 

 

 

 

Model               Wheel Numbers             Wheel Diameter            Wheel width                  Seat Width

 

 

Uni Cycle           1                                    30mm                          300mm                          90mm

 

 

 

Racer                2                                    15mm                           1000mm                        60mm

 

 

 

Bmx                  2                                    45mm                         500mm                          90mm

Another interpretation is that generalisation involves replacing many things with one. Lets say I am designing many types of bikes but only want to write one program. I would first decide what all bikes have in common, wheels, frame, seat etc. I can then write a program that uses variables and functions when I get to these features.

 

 

bottom of page