1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331
|
\documentclass[a4paper]{article}
\usepackage[latin1]{inputenc}
\title{The tagged collection: an alternative way of organizing a collection of
bookmark-like items and its integration with existing web
browsers}
\author{Enrico Zini \texttt{zinie@cs.unibo.it}}
\makeindex
\begin{document}
\maketitle
\section{Abstract}
This paper shows the problems that arise when hierarchical collections of
items like the bookmarks of a web browser evolve over time, and proposes an
alternative, yet simple organization to solve those problems. It then proposes
and analizes a viable method to integrate flawlessly this organization into
any existing web browser.
\section{Introduction}
Many applications often have the need to let people build a collection of
items like web browser bookmarks. People use these collections to store
interesting items they find, then forget them until they need them again,
sometimes a long time later.
While applications have no technical problems in keeping this type of data,
problems arise when people needs to search and retrieve items from the
collection.
Usually, the number of these items easily grows rapidly too large to let the
user pick them up from a list, and the nature of the items makes basic
techniques such as alphabetical sorting unsuitable as the main way for
locating the data.
The solution usually adopted is to let people group their items into folders
and organize their folders in a hierarchy, so that they can locate what they
wish by proceeding ``from the general to the particular''.
Other more complicate and interesting solutions like the one presented in \cite{autoorg}
try to cluster items automatically or semi-automatically, at the risk of
reducing too much the control over the structure of the collection, as when
someone else goes on sorting our desks.
\section{The problem}
Hierarchies usually are built to mimick the importance that a person gives to
the various qualities of an item. For example, I could think of storing a
bookmark to a E-Zine about computer music equipment under ``Computer'', then
``Music'', then ``Reviews''.
This is great, because it lets people model their collection to their needs,
but it can become fragile, since the estimation of the importance of the many
qualities of an item usually change over time:
\begin{itemize}
\item it can change based on relationships with other items in the
collection (I could collect many other bookmarks about variuos reviews and
decide that storing my E-Zine under ``Reviews/Music/Computer'' suits me
better)
\item it can change along with the interests of the person (I could get more
interested in music and decide that ``Music/Computer/Reviews'' is better).
\end{itemize}
While people can perform such rearrangeemnts when they feel that the structure
of their collections does not suit their needs anymore, such rearrangements
are usually quite boring and time consuming.
Another problem is deciding when to store an item when an item is found. The
decision has to be taken quickly, since bookmarks are usually taken when an
interest strikes during other operations, but the attention should not have to
shift too much from that operation.
With hierarchies, the decisions about where to store an item can be difficult:
the web page about a weighted master keyboard should go under
``Music/Instruments'' or under ``Computer/Music/Instruments'' ?.
A solution usually offered is to store the item in more than one place in the
hierarchy, but then storing the item becomes a difficult task, since is would
involve figuring out all correct places in all the hierarchy where the item
can belong (if I'm navigating the Internet looking for music information, I
might not recall I had a ``Music/Instruments'' section under ``Computer''; if some
time later I'll consider buying some musical appliance for my computer, I
might not even think to search outside the ``Computer'' folder).
Besides storing the data, people want to find the elements they have stored.
To do this, they usually navigate their collection until they find the
required item. Furnas, in \cite{evn}, describes four properties that can allow an
information structure to be effectively view navigable, that is, like in the
case with the current ways to move in a collection, to navigate selecting
informations in the current view of the structure.
The four properties are:
\begin{description}
\item[EVT1] The number of outgoing links must be ``small'' compared to the
size of the structure
\item[EVT2] The distance between pair of nodes in the structure must be
``small'' compared to the size of the structure
\item[VN1] Every node must contain some valid information (called residue)
on how to reach any given other node
\item[VN2] The information associated to each outgoing link (called
outlink-info) must be small.
\end{description}
The usual hierarchy normally fullfills rules EVT1, EVT2 and VN2: EVT1 and EVT2
are usually limited by people when building the tree, since it's common sense
that breaking them would cause a mess. Rule VM2 is respected, since the
outlink info is just a name or very short phrase.
Property VN1, however, is usually difficult to maintain, as shown in the
examples above. This means that collections manually sorted in hierarchies are
not likely to be Effective View Navigable, that is they are difficult to
navigate without external aids.
\section{An alternative approach}
The problem with hierarchies has been identified in that they follow the
importance given by a person to the qualities of an item, and this importance
is not a static quality.
A better approach would be to structure the collection based just on the
qualities of its items: while a E-Zine on computer music could go in
``Music/Computer/Reviews'' or in ``Reviews/Music/Computer'', it always concerns
``Music'', ``Computers'' and ``Reviews''.
Instead of being filed in one or more nodes of a hierarchy, nodes could be
stored in some kind of ``flat'' structure, tagged with zero or more categories.
In that way, storing an item in the collection would require adding some
attributes picked from a list or occasionally created new, and maintaining the
collection would require adding or removing tags when some more insight on the
items is acquired or when the number of items stored increases.
An hypotetical search method could consist on a window split in two, with one
half allowing the user to require or exclude the various tags and the other
half showing the matching items.
\section{Deploying the alternative approach}
While this could be an interesting idea for a specialized application to store
bookmarks or similar informations, it could be interested to use the tagging
method with current software.
Existing web browsers all use a hierarchical organization. If this hierarchy
could be mapped to a tagged collection, and the tagged collection rearranged
into a hierarchy complying with Effective View Navigation rules, we would have
found a way to immediately and transparently improve all existing software.
\subsection{From the tagged collection to the hierarchy}
Let's analyze a possible algorithm to convert a tagged hierarchy into a
hierarchical collection:
\begin{description}
\item[1] Define the ``cardinality'' of a tag as the number of items in the
collection having it in the tag set
\item[2] Add the items with no tags to the tree
\item[3] Delete the items with no tags from the collection
\item[4] If there are no more items left, goto 9
\item[5] Choose the tag T with the highest cardinality and add it to the
nodes in the tree, as a new folder called with the name of the tag
\item[6] Insert into the new folder all associated items
\item[7] Remove from all the items in the collection the tag T
\item[8] Goto 3
\item[9] For all newly added folders, repeat this algorithm on the
collection of their items
\end{description}
The resulting tree is EVT2, since its maximum depth is bounded by the maximum
number of tags assigned to a single item, that is usually small.
The resulting tree is VN1, since in every node there is at least one of the
cathegories of the item or the ``All the rest'' cathegory pointing to the
parent, and when we have chosen all the cathegories of the item we can find
it.
The resulting tree is VN2, since the outlink-info is the tag name, usually a
name or small phrase.
EVT1 remains to check. All child nodes refer to a subset of the items referred
by the parent, so the node with the maximum number of outgoing links must be
the root. The number of outgoing links in the root is exactly the number of
all different tags found in the collection; it remains to see if this number
is small.
Supposing to have an uniform distribution of items in all possible combination
of tags, and supposing to have no more than 10 items for each possible
combination, if n is the number of tags, the maximum number of items that can
be stored in the collection is $10 \sum_{i = 1}^{n} \frac{n!}{i!(n - i)!}$.
With $n = 20$, a suitable number of tags in our root node, we could store up to
1'048'575 elements!
This number is great, but the scenario would rarely reflect real situations:
for example, a programmer might like to tag some links by computer programming
language, adding a tag for every computer language he knows; then tag music by
genre, adding a tag for every music genre he likes; then proceed with movie
types, and so on.
In reality the number of tags cannot grow too big, or it would imply having
overtagged the items either by assigning too much tags to every item or doing
unnecessary catalogation resulting in very few items per tag; however, our
root node is likely to fill up fast enough not to satisfy EVT1.
This problem can be solved by refining the algorithm. Let's introduce the
concept of ``implication'' between tags: one tag implies another if all items
tagged with the first are also tagged with the second. Between step 7 and step
8, let's insert step 7a:
\begin{description}
\item[7a] Remove from all the items in the collection all the items implied
by tag T
\end{description}
This should keep the root node small as soon as the collection is tagged in a
sane way: all our programming languages can be implied by a tag ``Language'',
all our music genres can be implied by a tag ``Music'' and so on.
The modified algorithm is trivially still EVT2, still VN2 and has become EVT1.
Is it still VN1? Yes: implication of A by B leaves in B some residue
information of A; because a tag is either present in a node or implied by a
tag present in a node, it still has a residue in every node.
\subsection{From the hierarchy to the tagged collection}
Now that we can generate a hierarchy that is effectively view navigable, we
need to recreate the tagged collection from it. A suggestion on how to do it
comes straight from one of the the examples above.
E-Zines on computer music could go in ``Music/Computer/Reviews'' or in
``Reviews/Music/Computer'', but they always concern ``Music'', ``Computers'' and
``Reviews''. This suggests taking the list of parent nodes from an item in the
hierarchy and using it as the list of tags for the items.
Would this algorithm introduce some loss of information?
In a generated hierarchy without pruning of implied tags, no information would
be lost, since the list of parents of an item would always be a permutation of
its tag set.
In a generated hierarchy with pruning of implied tags, an item will appear at
least one for every one of its tags, so the information can be rebuilt by
merging all the parent sets of every instance of an item.
Since an item would never have a parent corresponding to a tag that is not in
its tag set, we have established a biunivocal function between the tagged
collection and its tree representation.
\section{Conclusion}
I have shown how a hierarchy is not an optimal way to organize a collections
of items, and I have shown a possible alternative way to do it, the tagged
collection. I have then shown an algorithm to store a tagged collection in the
bookmark hierarchy of any existing browser, with the generated hierarchy being
Effectively View Navigable.
This is enough to produce a tool to manage bookmarks in a smart way and
interact transparently with any given browser, with no need to store
informations in external databases.
\section{Future work}
The generated hierarchy is good to find informations, but it is not likely to
be suited for maintaining it.
Maintaining a tagged collection would mean to:
\begin{itemize}
\item Add an item
\item Add tags to the tag set of an item
\item Remove tags from the tag set of an item
\item Remove an item
\end{itemize}
Adding a bookmark is straigthforward, as it can be appended to the root node;
many browsers already have a one-click command to do it.
Tagging newly added bookmarks can be easily performed in two ways:
\begin{enumerate}
\item Move or copy the item in a suitable subtree of the hierarchy
\item Create a small temporary tree with branching factor 1 to represent the
tag list, put the item at the end of the tree and invoke the sorting
algorithm.
\end{enumerate}
However, method 1 makes the user loose the concept of a tagged collection and
method 2 lacks elegance and intuitiveness.
Removing a tag from the tag set of an item cannot be easily performed, since
it would require to move it outside all the instances of folders named after
that tag but keep it inside all instances of folders named after the other
tags in its tag set.
Deleting an item from the collection cannot be easily performed, since it
would require deleting it in all the places it could appear.
It remains to see if there can be simple tree operations that can intuitively
be mapped into tagged collection operations. One possible idea could be using
folders with special names like ``Trashcan'' where to put an instance of items
to be deleted and have the sorting algorithm treat them in a special way.
Future work will be to explore the ways of maintaining tagged collections,
either using special tree operations or designing ad-hoc interfaces.
Another field of exploration could be optimizing the generated hierarchies:
for example, it could be tempting to ``flatten'' a folder containing one or two
items by storing them directly in the parent node and removing the folder.
However, this optimization would cause a possible loss of information when
converting the hierarchy back to a tagged collection. Research could look for
other optimizations, and other ways to store information in the hierarchy to
make optimizations possible.
\section{Acknowledgements}
Thanks go to prof.Fabio Patern for having introduced me to Information
Visualization, to prof.Cesare Maioli and prof.Renzo Davoli for giving me very
useful advice and to my father for late-evening calculation assistance.
\bibliography{local}
\bibliographystyle{plain}
\end{document}
|