Programming, security, software development and architecture.
BSc Computer Science: reasoning, implementation and testing
Computer science assignments test more than code that happens to run. Depending on the module, students may need to justify algorithmic complexity, choose data structures, explain database integrity, evaluate security trade-offs or document a software-engineering process. Follow the specific assessment rubric rather than assuming all computing projects require the same report.
Fictional programming task: tracking duplicate identifiers
Consider a teaching exercise: given a list of identifiers, report whether any value appears twice. This simple task illustrates why the method matters as much as the answer. No student assignment solution is being supplied for submission.
Compare two possible approaches
| Approach | Idea | Typical trade-off |
|---|---|---|
| Nested comparison | Compare each identifier with other entries | Simple but can require quadratic comparisons as the list grows |
| Set of observed values | Keep track of each identifier already encountered | Often faster average membership checks but requires additional memory |
Explain the assumptions behind any complexity claim. For example, average-time hash-set behavior is not a promise of identical performance in every implementation or adversarial scenario. State what counts as a duplicate and whether identifiers are case-sensitive.
Design a testing matrix
- Normal: several distinct values.
- Duplicate: one repeated value near the end.
- Empty: no values supplied.
- Boundary: a single value.
- Invalid input: mixed types or missing values, depending on the documented specification.
- Scale: sufficiently large inputs to evaluate resource use.
Explain your project evidence
- Translate the brief into requirements and constraints.
- Compare feasible algorithm or architecture choices.
- Explain your implemented approach using appropriate pseudocode, diagrams or code excerpts.
- Document original tests with expected and actual outcomes.
- Evaluate limitations, maintainability, correctness and security considerations.
- Credit libraries, tutorials and external code according to the assessment rules.
Security and responsible collaboration
Do not include passwords, private API keys, access tokens or confidential user data in shared debugging examples. When asking for help, provide the smallest reproducible sample, the error message, expected behavior and what you have already tried. Feedback should help you understand and improve your own work, not evade independent assessment.
Relevant academic guidance
Explore programming and debugging tutoring, database concepts and Python learning support. To discuss an appropriate tutoring session or permitted review, request a quote.