A problem with pattern-matching is synonyms. If the current directory is bin and . denotes the current directory and .. its parent, then bin, ../bin, ../bin/., .././bin/../bin all denote the same directory. If you are trying to block access to the bin directory in a command script, you need to consider all these variants (and an infinite number more). Cite a means by which a pattern matching algorithm copes with synonyms.

What will be an ideal response?


This is the canonical form representation problem of pattern-­?matching. A canonical form is a unique representation for each item. A fullyqualified, forward-­?directed path from the directory root to a node is a canonical representation of the path.

Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. True/False: Flash drives are less reliable than other storage devices because they consist of so many small moveable parts. 2. True/False: Computer games are a type of application software. 3. True/False: The computer’s master control program is the operating system.

Computer Science & Information Technology

Consider the statements below:

``` StringBuilder sb = new StringBuilder("a toyota"); sb.insert(2, "landrover"); sb.delete(11, 16); sb.insert(11, " "); ``` The StringBuilder contents at the end of this segment will be ________. a. a landrovertoyota b. a landrover a c. a landrov a d. a landrover toy a

Computer Science & Information Technology

Identify the tactic through which an individual obtains information about an individualfrom data brokers and threatens to expose the victim’s personal details unless a ransom is paid.

a. Hacking b. Spamming c. Doxing d. Cracking

Computer Science & Information Technology

In what situations can you get more accurate information on a form by ?using form fields other than text boxes? Name two types of fields you might use instead. 

What will be an ideal response?

Computer Science & Information Technology