Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jasminaorlowska authored Jun 22, 2023
1 parent 088a47d commit 761e72a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Sets-of-sequences-library
computer architecture and organization project
(computer architecture and organization project)

**Equivalence Sets of Sequences**
## Equivalence Sets of Sequences
The task is to implement a dynamically loaded C library that handles sets of
sequences with an equivalence relation. The elements of the sets are non-empty
sequences consisting of the numbers 0, 1, and 2. Sequences are represented
as strings in the implementation. For example, the sequence {0, 1, 2} is represented as the string "012".
Abstract classes can be named.

**Library Interface**
## Library Interface
The functions and type name to be provided by the library are declared in the seq.h file attached to the task description.
The following declarations are provided:

Expand All @@ -22,6 +22,7 @@ int seq_set_name(seq_t *p, char const *s, char const *n);
char const * seq_get_name(seq_t *p, char const *s);
int seq_equiv(seq_t *p, char const *s1, char const *s2);

## Sequence representation, operations on sets etc.
The correct representation of a sequence is a non-empty string composed of the characters 0, 1, or 2, and it is terminated by a null character.
The correct name of an abstract class is a non-empty string terminated by a null character.
Additional details about the library's operation, including information about invalid parameters, can be inferred from the seq_example.c file provided,
Expand Down

0 comments on commit 761e72a

Please sign in to comment.