0

The goal is to answer questions of the form "is vertex v connected to w?" in constant time.

Should the question mark be there? A related question is how this sentence might be made better?

qazwsx
  • 2,445
  • 12
  • 36
  • 57
  • That's fine, as long as you don't follow the quotation with a proper noun (which can confuse readers as to whether it's a sentence boundary). – Bradd Szonye Mar 27 '14 at 20:17
  • Could you construct an example sentence where the use of a in-the-middle-of-sentence question mark, or period, would be ambiguous and inappropriate? – qazwsx Mar 27 '14 at 21:54
  • 2
    Middle-of-the-sentence periods are inappropriate except in abbreviations. Question marks and exclamation points are fine. I believe @Bradd is telling you to avoid sentences like When asked the question "where are you from?" Ozwald refused to answer. He's right; it's confusing. – Peter Shor Mar 27 '14 at 22:08
  • 1
    @Peter Shaw This (your first sentence) can conflict with the demands to quote exactly. He came up with the slogan 'Think different.' for Apple. – Edwin Ashworth Mar 27 '14 at 22:43
  • @Edwin: good example of a possible exception to the rule. I think that generally there's no need to include periods in quotes, but maybe in this case ... – Peter Shor Mar 27 '14 at 22:47
  • 1
    @Peter I've never liked the compromise of substituting a full stop with a comma when a quoted sentence ends but the matrix sentence doesn't. As for the example here, we're 'allowed' to double-punctuate over here according to one set of rules for BrE I came across, so I'd probably write 'When asked the question "Where are you from?", Ozwald refused to answer.' (But I've dropped the final second full stop.) – Edwin Ashworth Mar 27 '14 at 23:01
  • In this example, would it better if the Is was capitalised -- thanks. It's a tough one. – Fattie Mar 28 '14 at 10:10

1 Answers1

1

Just FWIW ..

"A related question is how this sentence might be made better?"

I hate or love/hate writing involving computer science and related topics.

For example, a HUGE problem is that ("no matter how often I tell them not to!") programmers won't accept that the plural form of a Class in software is always the same word with no damned S on the end. Just like fish. It's absurd to add an "s" on the end of class names or variable names, because of the obvious technical confusion that could create.

Similarly there are huge annoying ugly issues with CamelCasePhrases, endBraces(), and the like.

Anyway, I'd write this:

The goal is to answer questions of the form: "Is
vertex v connected to w?" in constant time.

Sometimes just adding a few colons, ellipses, etc., can help clarify and slow-down the sentence.

For example,

http://answers.unity3d.com/questions/263302/vertices-array-in-mesh-vertices.html

Note that someone was saying: "It is an absolutely true statement
that Unity shares vertices where it can. There is no situation where
this is not true." ... that statement, is utterly incorrect.

Notice the drunk writer got away with a double sentyence, quoted, and following punctuation! But it's reasonably clear: because: of the excessive use of ( * ) stars ( * ) ellipses ( * ) colons and ( * ) dashes.

I feel with computer science discussions, it's really hard to avoid such "concrete-poetry -like" sentences, loaded with comma or dash interludes, star or dash lists, and colon or ellipsis lnks.

When discussing comp sci it's almost impossible not to "nest" a lot, because the topic is very much like that. You inevitably have to describe some complex concept, and then, comment on that in a complex way. (Exactly as in the example at hand from the OP.)

Indeed regarding nesting:

Often the "final solution" is to become much more long winded, and get in to using, well, variables in writing.

For the example you gave:

Consider questions like: "Is vertex v connected to
vertex w?"  Let's refer to such questions as VWQ
questions. Our goal is to answer VWQ questions in
constant time.

Note that say R. Dawkins does this where necessary (and does it very well).

(For vertices specifically, I suggest ultimately giving-up and drawing diagrams :) http://answers.unity3d.com/questions/266972/detecting-mesh-orientation.html )

Fattie
  • 10,520