It can be wasteful to double a vector’s size when more space is needed. For example, a full vector of 1,000,000 elements resizes to accommodate 2,000,000 elements when a new element is added, leaving 999,999 unused elements. You can use ______ and to __________ control space usage better.

Fill in the blank(s) with the appropriate word(s).


resize, reserve

Computer Science & Information Technology

You might also like to view...

The ____________________ property controls the amount of white space between letters.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Object oriented languages such as FORTRAN, COBOL, Basic, Pascal, and C, focused on actions to be performed.

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

Computer Science & Information Technology

Once a dashboard has been designed to meet the business requirements, there are several steps you need to take to get it ready for use

Indicate whether the statement is true or false

Computer Science & Information Technology

All browsers can decode video and audio.

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

Computer Science & Information Technology