CSCI 1320 (Principles of Algorithm Design I), Fall 2008:
Homework 1

Assigned:
September 11, 2008.

Due:
September 18, 2008, at 5pm.

Credit:
20 points.

Reading

Problems

Answer the following questions. You may write out your answers by hand or using a word processor or other program, but please submit hard copy, either in class or in my mailbox in the department office.

  1. (5 points) Convert the decimal number 53 to binary, octal, and hexadecimal. Show your work.

  2. (5 points) Convert the hexadecimal number A1 to decimal. Show your work.

Programming Problems

(For this assignment, you won't really be programming, but you will be doing something on a computer, and submitting your answers in the way you'll submit your programs in later assignments.)

  1. (10 points) For this problem your mission is to learn a little more about the text editor I teach in this course, vi. Do the following:

  2. (Optional -- up to 10 extra-credit points) I mentioned in class that there are many other text editors available on typical UNIX/Linux systems. For extra credit, use one of them to write a short text file, as described in the previous problem. Send me this file by e-mail, as described above. (You can send both files in a single message or send them separately, whichever is easier.)

    Which editor should you try this with? My vote is for emacs -- it's also widely available on UNIX/Linux systems, and I know enough about it to be able to try to answer your questions. Start it by opening a terminal window and typing emacs -nw. This should give you a page of instructions. Press control-h and then t to start an interactive tutorial. Work through as much of this tutorial as you need to in order to create and save a text file. Starting the program by just typing emacs starts a graphical version of the program, which you may prefer for use in our labs, but which isn't as useful if you're working remotely.



Berna Massingill
2008-09-12