Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 Online
OpenStudy (anonymous):

In PS4 what is the difference between the build_coder and the build_encoder functions?

OpenStudy (anonymous):

build_coder can shift in both the positive and negative direction, and is meant to be used as a helper function for build_encoder and build_decoder. build_encoder only shifts in the positive direction, and is only meant to encode messages (as opposed to decoding them).

OpenStudy (anonymous):

The implementation of build_coder should be short - it only calls the build_decoder or build_encoder as needed. This is an example of using abstraction. Someone using your code doesn't have to worry about what they should use (build_encoder or build_decoder) if they just want to build a coder.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!