Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
a4a09120
Commit
a4a09120
authored
9 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
Sd1 projects
parent
6e7abb6d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Doc/Sd1/appendix.xml
+122
-0
122 additions, 0 deletions
Doc/Sd1/appendix.xml
with
122 additions
and
0 deletions
Doc/Sd1/appendix.xml
+
122
−
0
View file @
a4a09120
...
...
@@ -134,4 +134,126 @@
</glossentry>
</glosslist>
</section>
<section
version=
"5.0"
xml:id=
"sd1SectExamAmendingProjects"
>
<title>
Examination bonus point project
</title>
<para>
Each participant may start a project to gain a bonus with respect to
the final examination. This bonus is given as a percentage and will be
added to your final examinations mark. Possible values depending on a
project's achievements are:
</para>
<itemizedlist>
<listitem>
<para>
0%
</para>
</listitem>
<listitem>
<para>
5%
</para>
</listitem>
<listitem>
<para>
10%
</para>
</listitem>
</itemizedlist>
<para>
So if the examination's result is 85% a bonus of 10% will result in
a mark corresponding to 95% of a regular exam result.
</para>
<section
xml:id=
"sd1SectProjectCriteria"
>
<title>
Marking criteria / Hints
</title>
<orderedlist>
<listitem>
<para>
You are expected to work as a team of three partners.
</para>
</listitem>
<listitem>
<para>
Your team is expected to supply a Maven project based on the
MI Maven archetype quickstart.
</para>
</listitem>
<listitem>
<para>
You are expected to provide good internal code documentation
with respect both to method signatures (
<xref
linkend=
"glo_Javadoc"
/>
) and method implementation.
</para>
</listitem>
<listitem>
<para>
You are expected to provide meaningful unit tests.
</para>
</listitem>
<listitem>
<para>
Your resulting project should be easily installable /
runnable.
</para>
</listitem>
</orderedlist>
</section>
<section
xml:id=
"sd1ProjectSieveErathostenes"
>
<title>
Project
<link
xlink:href=
"https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes"
>
Sieve
of Eratosthenes
</link></title>
<para>
Create a prime number generator which allows for dynamic
growth:
</para>
<programlisting
language=
"java"
>
/**
* Prime number generator internally based on the
* "Sieve of Eratosthenes"
* https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
* algorithm.
*
*/
public class Sieve {
public boolean isPrime(final int candidate) {
return false; //TODO
}
public PrimeFactor[] getPrimes() {
return null; //TODO
}
}
</programlisting>
<para>
This generator allows for decomposition into prime factors:
</para>
<programlisting
language=
"java"
>
/**
* An immutable describing prime factors and their multiplicity. Consider an example:
*
* 13230 = 2 *3 * 3 * 3 * 5 * 7 * 7
*
* So 13230 consists of the following PrimeFactor constituents:
*
* 2 having frequency 1
* 3 having frequency 3
* 5 having frequency 1
* 7 having frequency 2
*
*/
public class PrimeFactor {
/**
* A prime factor along with its frequency of appearance.
* @param factor The factor
* @param frequency The factor's frequency.
*/
public PrimeFactor(long factor, long frequency) {
this.factor = factor;
this.frequency = frequency;
}
/**
* See {@link #PrimeFactor(long, long)}l
*/
public final long factor;
/**
* See {@link #PrimeFactor(long, long)}l
*/
public long frequency;
}
</programlisting>
</section>
</section>
</appendix>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment