NET INCOME PER SHARE (Tables)
6 Months Ended
Apr. 30, 2017
Earnings Per Share [Abstract]  
Reconciliation of the numerators and denominators of the basic and diluted net income per share
The following is a reconciliation of the numerator and denominator of the basic and diluted net income per share computations for the periods presented below:
 
Three Months Ended
 
Six Months Ended
 
April 30,
 
April 30,
 
2017
 
2016
 
2017
 
2016
 
(in millions)
Numerator:
 

 
 

 
 
 
 
Net income
$
49

 
$
88

 
$
158

 
$
152

Denominator:
 
 
 
 
 
 
 
Basic weighted-average shares
177

 
170

 
174

 
171

Potential common shares— stock options and other employee stock plans
2

 
2

 
2

 
1

Diluted weighted-average shares
179

 
172

 
176

 
172