Skip to navigation Skip to content
jarviscodinghub
  • Our Services
  • How It Works
  • Ask Your Question Now
  • Sign In/Up
  • Ask Your Question Now
  • About Us
    • Exclusive Programming Help
    • Terms of Usage
    • Refund and Returns Policy
    • News
  • How It Works
  • Our Services
  • My Account
  • Ask Your Question Now
  • About Us
    • Exclusive Programming Help
    • Terms of Usage
    • Refund and Returns Policy
    • News
  • How It Works
  • Our Services
  • My Account
  • $0.00 0 items
Home / COSC 520 / Solved COSC 520 Assignment 1 The Login Checker Problem
Sale!
Solved COSC 520 Assignment 1 The Login Checker Problem

Solved COSC 520 Assignment 1 The Login Checker Problem

$30.00 $21.00

Original Work ?

Download Details:

  • Name: Assignment-1-zcbn5m.zip
  • Type: zip
  • Size: 910.24 KB

Category: COSC 520 Tags: COSC 520, hash tables, Login Checker Problem You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work
Share This
  • Description

Description

5/5 - (1 vote)

The objective of the assignment is to: (1) review hash tables, (2) explore advanced data
structures, and (3) numerically compare the algorithms.
The login checker problem is to quickly check that a login name has not been already taken so
that all logins are unique. Assume you have millions of logins (aka usernames), and a user
creates a new account. You need to ensure the new login is not a duplicate of an existing one.
Using your existing knowledge of algorithms and data structures you can
1. store all logins in a list, and check existence using linear search;
2. store all logins in a sorted array, and check existence using binary search;
3. store logins in a hash table, and check existence by hashing.
The assignment explores 2 more advanced data structures that scale better than the above.
Assume the number of logins is n=1 billion (you may use a smaller value of n depending on
your computer memory and speed as long as you justify the value of n used to validate your
approach).
• Read about bloom filters and look at examples.
• Read about Cuckoo filters and how they compare to Bloom filters.
Submission
To complete the assignment, submit the following:
1. A concise pdf file listing the time and space computational complexity of: linear search,
binary search, hashing, Bloom filter, and Cuckoo filter. Use appropriate parameters to
describe the complexity, e.g., Bloom filter uses n (estimated number of elements/logins),
m (bit array of m bits), and k (number of hash functions). You need to justify the
complexity; explain each parameters used and provide the formula with appropriate
references.
2. Plots showing the run time complexity for large enough data. Aim for 1 billion (you may
use a smaller value of n depending on your computer memory and speed as long as you

justify the value of n used to validate your approach). You can generate strings dataset
using synthesized functions. Then, run your program with different implementations
using linear search, binary search, hashing, Bloom filter, Cuckoo filter, and compare their
run time in a plot. Include this analysis in your pdf file and explain if it supports your
analysis. Remember to upload your dataset on the web and include a link to the dataset
in the pdf file.
3. Python code comparing the hashing, Bloom filter, and Cuckoo filter. Add the link of your
GitHub repository for this assignment to the pdf file. Your code should
o Be well documented and clean.
o Include unit tests.
o follow common practises:
▪ appropriate class/variable/method names (not too long and meaningful),
▪ appropriate comments
▪ comments for each method should indicate input, output, and a short
explanation of the method
▪ clear setup and running instructions.
How to submit: Submit your PDF file to Canvas, which should also include the links to your GH
repository and the dataset you used for testing. Use the Association for Computing Machinery
(ACM) – Small Standard Format Template (Overleaf) for your report. Remove the ACM, journal,
and copyright information. The report should be between 5-10 pages, including plots and
references.
Usage of GenAI: The use of GenAI is discouraged. However, if you still decide to use online
sources or GenAI to generate your code, first, make sure it is correct and executable. Second,
make sure to include the resources you have used and/or mention that you used GenAI in your
report. There is no penalty of using available code, the only drawback can be that you might
not be engaged as writing the code yourself for your future references.
Grading rubric
Weights Subtotals

Report 20
Complexity analysis 10
Comparisons 8
References 2
Code static 35
naming 5
comments 10
running instructions 5
code design 15
Code execution 35
syntax-error free, runs 10
unit tests run 5
convincing demo 5
performance 5
comparison of the data structures (item 2 in the above list) 10
Cross-Check ** 10

Examining and running one of your classmate’s assignment and grade it based
on the above criteria. It will be assigned to you by the instructor.
10
Total 100 100
**Cross-Check needs to be submitted within one week of the assignment submission deadline. Other than just
checking, use it as a learning opportunity. Include a rationale and degradation feedback and submit it through
email to the instructor: fatemeh.fard@ubc.ca.
Bonus
Extra points are 15% of your assignment mark and are added to the assignment grade.
1. Suggest an alternative competitive method; explain its data structure, how it works, and
its complexity with appropriate reference. Note that receiving the bonus mark depends
on the approval of instructor [15% bonus].
2. Discuss your alternative method with the instructor, and if the instructor considers your
method competitive, implement it and benchmark it vs. Bloom and Cuckoo [15%
bonus].

Related products

  • CSE331 Project 6: Hash Tables solution

    CSE331 Project 6: Hash Tables solution

    Sale! $24.99 $17.49
    Buy Answer
  • CPSC 2430 Assignment #5 solution

    CPSC 2430 Assignment #5 solution

    Sale! $24.99 $17.49
    Buy Answer
  • Solved COSC 520 Assignment 2 Advanced Data Structures

    Solved COSC 520 Assignment 2 Advanced Data Structures

    Sale! $30.00 $21.00
    Buy Answer
Solved COSC 520 Assignment 2 Advanced Data Structures Solved COSC 520 Assignment 2 Advanced Data Structures
Email Us: jarviscodinghub@gmail.com
Whatsapp (Only) :+1 (541)-423-7793
New York
United States
Scan to Get Help
We follow the DMCA and remove content immediately if requested by the copyright owner.

Latest Trends

  • TAC 380 Video Game Programming at USC – Get Expert Academic Support
  • CSCI 526 Game Development at USC – Expert Help
  • CS7637 Mini-Project 5: Monster Diagnosis Summer 2025
  • CS7637 Mini-Project 4: Monster Identification Summer 2025
  • CS7637 Mini-Project 3: Sentence Reading Summer 2025
Terms

While the solutions we provide are very correct and accurate they should only be used as tutorials to make the final copy for submission by students.

© jarviscodinghub 2026
Privacy PolicyBuilt with Storefront & WooCommerce.
  • My Account
  • Search
  • Basket 0
Solved COSC 520 Assignment 1 The Login Checker Problem
You're viewing: Solved COSC 520 Assignment 1 The Login Checker Problem $30.00 $21.00
Buy Answer
WhatsApp us Now