Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 18 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!
Latest Questions
Jalissa21: What does adenoma mea?
32 minutes ago 2 Replies 0 Medals
Twilightt: How Can We Prevent Gun Violence in American Schools?
31 minutes ago 4 Replies 1 Medal
Twaylor: possible?
2 days ago 5 Replies 0 Medals
Arriyanalol: hekp
4 days ago 33 Replies 0 Medals
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!