Homework Assignment 1 Solution

$29.99 $18.99

Collaboration Policy. Homeworks will be done individually: each student must hand in their own answers. It is acceptable for students to collaborate in understanding the material but not in solving the problems or programming. Use of the Internet is allowed, but should not include searching for existing solutions. Under absolutely no circumstances code can be…

You’ll get a: . zip file solution

 

 

Description

Rate this product

Collaboration Policy. Homeworks will be done individually: each student must hand in their own answers. It is acceptable for students to collaborate in understanding the material but not in solving the problems or programming. Use of the Internet is allowed, but should not include searching for existing solutions.

Under absolutely no circumstances code can be exchanged between students. If some code was shown in class, it can be used, but it must be obtained from Canvas, the instructor or the TA.

Assignments from previous offerings of the course must not be re-used. Violations will be penalized appropriately.

Late Policy. No late submissions will be allowed without consent from the instructor. If urgent or unusual circumstances prohibit you from submitting a homework assignment in time, please e-mail me.

MovieLens Datasets Data for this assignment should be obtained from: http://grouplens. org/datasets/movielens/

You should use the following datasets for all problems:

  1. 100,000 ratings from 1000 users on 1700 movies. Released 4/1998.

  1. 1 million ratings from 6000 users on 4000 movies. Released 2/2003.

  1. 10 million ratings and 100,000 tag applications applied to 10,000 movies by 72,000 users. Released 1/2009.

u.data: Data are stored as strings separated by a tab (nt):

user id item id rating timestamp

For example:

196

242

3

881250949

186

302

3

891717742

22

377

1

878887116

244

51

2

880606923

166

346

1

886397596

298

474

4

884182806

115

265

2

881171488

253

465

5

891628467

305

451

3

886324817

6

86

3

883603013

  1. Use comments where necessary to explain what you are doing. No comments or over-commenting are both bad.

  1. Use functions! Do not place all your code in main().

  1. Do not leak memory. Free all allocated memory and close all opened files.

  1. Try to use only material covered in the course this far.

Deliverables. A zip/tar/gz file containing:

  1. text2bin.c

  1. bin2text.c

  1. bin2indexed.c

  1. A pdf file with brief explanations of your approach and timing results.

4